Re:Development with the iPhone SDK - Initial Observations
by InkweaverReview on Thursday June 25, 2009 @11:09AM
(#673765)
Would I have to set up two views within Interface Builder, one for landscape and one for portrait, or do I use the one single view and rotate it using code?
Re:Development with the iPhone SDK - Initial Observations
by allenbrunson on Thursday June 25, 2009 @11:26AM
(#673806)
you just use one view. implement that view controller method i mentioned, and always return TRUE. you must do this for every view in your app, if you want them to all work in landscape modes.
that's all you have to do, as far as the iphone is concerned. of course you'll have to draw the view contents differently, when you're in landscape mode.
EDIT: Also the autorotation only works on ViewControllers. If you only have Views without ViewControllers, (such as the default OpenGL app from the wizard) they will not rotate.