TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | Custom |
ReleasedLast Release | Dec 2014 |
Maintained by Yasuhiro Inami.
UIKit-additions to forward iOS6 rotation methods.
@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
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.