As the Long title suggests I've been real struggling with IOS 6 Orientations lately. I'm working on a current project which is iPhone based only, were almost all viewcontrollers only support portrait orientation (default orientation). I have this one viewcontroller though I'd like to give multiple orientations as the only one, stand alone. how do I do that properly? Here's my approach. Cheers'
In Settings - All orientations except portrait bottom's up are selected.
In the Viewcontroller which I want to give multiple orientations - this code is embedded
-(NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskAllButUpsideDown; } - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { return UIInterfaceOrientationPortrait; } -(BOOL)shouldAutorotate { return YES; }
For the rest of the viewcontollers - to support one orientation (default orientation) portrait:
-(NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationPortrait;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
return UIInterfaceOrientationPortrait;
}
-(BOOL)shouldAutorotate
{
return YES;
}
It doens't work. It seems as if the methods aren't called - but the project and the build just sticks to the selected orientations in settings. Why isn't this working!!
Any help would be deeply appreciated.