You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This basically does nothing. All the orientations are still supported and the thing rotates. I think it's because my ViewController is embedded in several other controllers with SASlideMenu
SlideMenuRootViewController --> SASlideMenuViewController --> UINavigationController (fixed to landscape in storyboard) --> MyViewController
I don't know if this is an issue per se, I've checked SlideMenuRootViewController and SASlideMenuViewController but there's not much regarding orientation there.
The text was updated successfully, but these errors were encountered:
This means that you ask the leftMenu (the part that you implement yourself) to tell you the supportedInterfaceOrientation. However, the SASlideMenuViewController does not inherit it, so you need to craft it yourself. In my case, I remember the current UINavigationController in the leftMenu and delegate the method call there. The NavigationController delegates the call to the ViewController in charge, which answers finally. It works for me.
I have a ViewController on which I want to force orientation so I tried:
-(NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskLandscape;
}
-(BOOL) shouldAutorotate {
return NO; //also tried YES
}
return UIInterfaceOrientationLandscapeLeft;
}
This basically does nothing. All the orientations are still supported and the thing rotates. I think it's because my ViewController is embedded in several other controllers with SASlideMenu
SlideMenuRootViewController --> SASlideMenuViewController --> UINavigationController (fixed to landscape in storyboard) --> MyViewController
I don't know if this is an issue per se, I've checked SlideMenuRootViewController and SASlideMenuViewController but there's not much regarding orientation there.
The text was updated successfully, but these errors were encountered: