EnkiUtils
Small library of classes that Enki Labs uses internally.
 All Classes Functions Properties Pages
UINavigationController+EnkiUtils.m
1 //
2 // UINavigationController+EnkiUtils.m
3 //
4 // Copyright (c) 2013 Fry.
5 //
6 
7 #import "UINavigationController+EnkiUtils.h"
8 
9 
10 // See http://stackoverflow.com/questions/12777474/ios-6-app-is-rotating-even-with-shouldautorotateno
11 // Thanks Fry!
12 
14 
15 -(BOOL)shouldAutorotate
16 {
17  return [[self.viewControllers lastObject] shouldAutorotate];
18 }
19 
20 -(NSUInteger)supportedInterfaceOrientations
21 {
22  return [[self.viewControllers lastObject] supportedInterfaceOrientations];
23 }
24 
25 - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
26 {
27  return [[self.viewControllers lastObject] preferredInterfaceOrientationForPresentation];
28 }
29 
30 @end