I'm using the Master-detail template in xcode4.5.1 to create an universal app. To keep landscape in iPad, I have following settings. It works in iOS6, but always keep portrait in iOS5. How can I solve the issue? ( project linkage: https://www.dropbox.com/s/7wm9l8kxhan6kp1/itstest.zip)
plist
<key>UISupportedInterfaceOrientations~ipad</key> <array> <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array> <key>UISupportedInterfaceOrientations~iphone</key> <array> <string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortraitUpsideDown</string> </array>
even add following in Appdelegate.m
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return UIInterfaceOrientationIsLandscape(interfaceOrientation); }
Thanks!