Question

I have a tab bar with four items. i need to rotate only one item, but i don't understand how to do.I tried this, but doesn't work.

- (BOOL)shouldAutorotate { return NO; }

I'm working in ios 7 and storyboard.

Thanks

No correct solution

OTHER TIPS

Unfortunately you can't do that. Whatever the allowed rotation settings are for the tab bar controller (through its delegate method tabBarControllerPreferredInterfaceOrientationForPresentation:), those are the allowed rotation settings for all of its items. The only way to force rotation in iOS 7 is to put up a presented (modal) view with presentViewController: (modal segue).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top