Hello
I have built an ipad with STV and I have some screens that will be display in landscape mode.
I disable rotation for all SCTableViewController viewControllers, It's working OK on the Table display (master view), but when I enter the detail page (detail view), the screen rotate to landscape mode.
How can I disable also rotation for detail page ?
FYI I am using this kind of code for that.
#ifdef IOS_OLDER_THAN_6
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
#endif
#ifdef IOS_NEWER_OR_EQUAL_TO_6
- (BOOL)shouldAutorotate
{
return NO;
}
-(NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskPortrait;
}
#endif