just updated to IOS SDK 6 and now I'm confused. Tried to find a solution but I failed.
- Created a new "Single View iPad APP" (I have an iPad 3) in xcode
- Disabled Portrait & Upside-Down interface orientations in TARGETS->Summary
- Set simulated metrics "orientation" to "Landscape"
Added following lines of code into the view controller file:
- (BOOL)shouldAutorotate { return YES; } - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { return UIInterfaceOrientationLandscapeLeft | UIInterfaceOrientationLandscapeRight; } - (NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskLandscape; } - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; NSLog(@"%@", NSStringFromCGRect(self.view.frame)); }Run APP
My output is: 2012-10-09 18:18:40.149 TestApp[6165:907] {{20, 0}, {748, 1024}} Does anybody know why the frame is not ... {{0, 20}, {1024, 748}} as I would expect? Maybe I missed something!
Thank you!