Top "Uiinterfaceorientation" questions

The orientation of the application's user interface in Apple OS.

Is [UIScreen mainScreen].bounds.size becoming orientation-dependent in iOS8?

I ran the following code in both iOS 7 and iOS 8: UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation]; BOOL landscape = (orientation == UIInterfaceOrientationLandscapeLeft || orientation == …

ios ios8 orientation uiinterfaceorientation uiscreen
How to change the device orientation programmatically in iOS 6

In iOS 5 we could change the device orientation programmatically like so: [[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight]; But in iOS 6 setOrientation is …

ios objective-c uiinterfaceorientation
What is the "right" way to handle orientation changes in iOS 8?

Can someone please tell me the "right" or "best" approach to working with portrait and landscape interface orientations in iOS 8? …

ios ios8 orientation uiinterfaceorientation landscape-portrait
iOS: Device orientation on load

It seems that when my app loads, it does not know its current orientation: UIInterfaceOrientation orientation = [[UIDevice currentDevice] orientation]; if (…

iphone ios uiinterfaceorientation uidevice
Status bar is Landscape, but [[UIApplication sharedApplication] statusBarOrientation] returns portrait

This problem appears to be intermittent, but I am not sure why exactly. When running my application on the device (…

ios ipad orientation uiinterfaceorientation
disable autorotate on a single UIViewController in iOS6

I have a project using UINavigationController and segues working properly good, all of them rotate correctly, the thing is... I …

objective-c xcode ios6 uiinterfaceorientation autorotate
Launching into portrait-orientation from an iPhone 6 Plus home screen in landscape orientation results in wrong orientation

The actual title for this question is longer than I can possibly fit: Launching an app whose root view controller …

ios iphone ios8 uiinterfaceorientation
View rotation notifications: why didRotateFromInterfaceOrientation: doesn't get called?

I'm trying to detect any device orientation change so that I can update the views. I want to update the …

iphone ios uiviewcontroller uiinterfaceorientation
Xcode: Getting warning "implicit conversion from enumeration type UIDeviceOrientation"

Full warning: Implicit conversion from enumeration type 'UIInterfaceOrientation' to different enumeration type 'UIDeviceOrientation' Getting it on the line: [self orientationChanged:…

objective-c xcode uiinterfaceorientation
UICollectionView layout update - item size not changing

I'm having a problem with collectionView's item size. I want to display 3 items in row for Portrait mode and 6 for …

ios uicollectionview uiinterfaceorientation