PDA

View Full Version : Rotate window orientation to horizontal problem




Sergio10
May 3, 2009, 06:36 AM
Hi,

I need to develop horizontal application for iphone.
So, I rotated window in IB. But if I build project and rotate iphone simulator in horizontal position, buttons, sliders don't rotate in application.

Could you please help me???
Thanks



x12
May 20, 2009, 06:02 PM
if you want your app to start in landscape open you info.plist in xcode as a plain text file and add the following lines of code

<key>UIInterfaceOrientation</key>
<string>UIInterfaceOrientationLandscapeRight</string>
<key>UIDeviceOrientation</key>
<string>UIDeviceOrientationLandscapeRight</string>
just before

/dict>
</plist>