Quick and dirty scaling for iPhone?

For Apple specific issues

Quick and dirty scaling for iPhone?

Postby bdejong » Tue Jul 03, 2012 1:55 pm

Hey guys,

another Q from me: we have an app that runs just fine on iPad (it's really a demo app and not an end-user app) and we want to test it on iPhone.
The app is way too big to fit on the iphone display (accidentally it fits nicely on iPad though).

Is there a quick and dirty way to scale an app down?
Or perhaps some scroll-bars?

- bram
bdejong
JUCE UberWeenie
 
Posts: 278
Joined: Wed Sep 28, 2011 1:30 pm

Re: Quick and dirty scaling for iPhone?

Postby masshacker » Tue Jul 03, 2012 2:56 pm

I 'think' you could do it by applying AffineTransform::scale to your main Component.
User avatar
masshacker
JUCE UberWeenie
 
Posts: 314
Joined: Thu Jan 08, 2009 10:53 am

Re: Quick and dirty scaling for iPhone?

Postby ke20 » Wed Jul 04, 2012 8:13 am

I think the AffineTransform would work only if all your subcomponent are positioned relatively to the main component.
If you want to add a scrollbar, you may just add a Viewport in your main window then add your component to the Viewport.
User avatar
ke20
JUCE UberWeenie
 
Posts: 131
Joined: Thu Feb 08, 2007 2:56 pm


Return to MacOSX and iOS

Who is online

Users browsing this forum: No registered users and 2 guests