Rotate window orientation to horizontal problem

Discussion in 'iOS Programming' started by Sergio10, May 3, 2009.

  1. macrumors regular

    Joined:
    Oct 3, 2007
    #1
    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
     
  2. x12
    macrumors newbie

    Joined:
    May 20, 2009
    #2
    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
    Code:
    <key>UIInterfaceOrientation</key>
    	<string>UIInterfaceOrientationLandscapeRight</string>
    	<key>UIDeviceOrientation</key>
    	<string>UIDeviceOrientationLandscapeRight</string>
    just before

    Code:
     /dict>
    </plist>
    
     

Share This Page