IOS6 orientation
1 view | +0 today
Follow
IOS6 orientation
Make sure you included this in iOS 6.x, - (BOOL) shouldAutorotate { return YES; } -(NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskAll; } // Get orientation here UIDeviceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation]; if (UIDeviceOrientationIsLandscape(orientation)) { NSLog(@"landscape"); } else if (UIDeviceOrientationIsPortrait(orientation)) { NSLog(@"portrait"); }
Curated by Mark Adam
No scoops have been published yet. Suggest content to its curator!