Running on iOS 8, I need to change the interface when I rotate my application.
I am currently using this code:
-(BOOL)shouldAutorotate { UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation]; if (orientation != UIInterfaceOrientationUnknown) [self resetTabBar]; return YES; }
What I do is delete the current user interface and add a new user interface that matches the orientation. However, my problem is that this method is called about 4 times every time one rotation is made.
What is the correct way to make changes when changing orientation in iOS 8?
objective-c ios8 orientation
Josh Kahane Oct 11 '14 at 13:10 2014-10-11 13:10
source share