Top "Autorotate" questions

"viewWillTransitionToSize:" not called in iOS 9 when the view controller is presented modally

I present a view controller from another one: - (void)showModalView { UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; MySecViewController *mySecViewController = […

ios uiviewcontroller screen-orientation autorotate presentviewcontroller
Clean autorotation transitions in a paging UIScrollView

I have a paging UIScrollView in which the user pages horizontally through images, like Apple's Photos.app. That works, but …

iphone uiscrollview autorotate
Prevent autorotate for one view controller?

My app can autorotate but I need one of the views to only show in portrait mode and don't know …

ios objective-c uiviewcontroller ios6 autorotate
InterfaceOrientation deprecated in iOS 8

I am not using Size classes in my project and continue to use old methods for view controller orientation. I …

ios8 uikit uiinterfaceorientation autorotate
Detecting device orientation

I need to detect android device orientation change without playing manually with sensor data, while keeping activity orientation stick to …

android automation accelerometer autorotate
How to support only portrait mode on an iPhone app

I have a strange problem in an iPhone app I'm developing. I want my app to support ONLY portrait mode, …

iphone objective-c xcode autorotate device-orientation
auto-rotation in iOS5/6?

I updated to Xcode 4.5 and am working with iOS6--a mistake I will definitely not make next time there's an …

ios5 ios6 autorotate
preferredInterfaceOrientationForPresentation must return a supported interface orientation (iOS 6)

My application window's root view controller is a subclassed UINavigationController. I have added this code to the class: - (BOOL)…

ios uiviewcontroller ios6 autorotate
Autolayout and Device Orientation

I am developing an application which supports portrait and landscape modes. I am using auto layout to arrange my views. …

ios iphone autolayout device-orientation autorotate
How do I rotate custom splash screen on iOS?

My splash screen is working, but my app works on landscape mode, and the splash screen shows in the default …

iphone ipad ios autorotate uiinterfaceorientation