iOS6-ForwardAutorotate 1.0.0

iOS6-ForwardAutorotate 1.0.0

TestsTested
LangLanguage Obj-CObjective C
License Custom
ReleasedLast Release Dec 2014

Maintained by Yasuhiro Inami.



  • By
  • Yasuhiro Inami

iOS6-ForwardAutorotate 1.0.0

UIKit-additions to forward iOS6 rotation methods.

Code

@implementation UINavigationController (iOS6ForwardAutorotate)

- (BOOL)shouldAutorotate
{
    return [self.viewControllers.lastObject shouldAutorotate];
}

- (NSUInteger)supportedInterfaceOrientations
{
    return [self.viewControllers.lastObject supportedInterfaceOrientations];
}

- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
    return [self.viewControllers.lastObject preferredInterfaceOrientationForPresentation];
}

@end

License

iOS6-ForwardAutorotate is available under the Beerware license.

If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.