I have a MainViewController that has a button that pushes a new view (InfoViewController) through flip horizontailly. So:
controller.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; [self presentModalViewController:controller animated:YES];
The MainView controller supports Portrait and PortraitUpsideDown. For example:
- (BOOL)shouldAutorotate { return YES; } - (NSUInteger)supportedInterfaceOrientations { return (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown); }
My InfoViewController also shows the above code. In my AppDelegate, it has this in LaunchOptions:
[self.window setRootViewController:self.mainViewController]
In my app.plist file it supports all orientations. This is because other views must also support the landscape. So on my MainViewController and InfoViewController, I only need Portrait and PortraitUpsideDown. But, in another opinion, I need all orintations.
My MainViewController works fine, but my InfoViewController works for all orientations.
I am extreme trying to get this to work in iOS6. I researched other posts and tried to help other people, but no luck. Please can someone help me get this thanks. And I'm new to Objective-C: p
ios objective-c ios6
ryryan Sep 23 '12 at 16:50 2012-09-23 16:50
source share