The entire interface is rotating correctly for all possible screen orientations. But when UIAlertView is shown it's not rotated to upside down orientation.
Are you talking about an iPhone app or an iPad app? Since upside down orientation on an iPhone app will probably get you rejected from the App Store: Past question about rejection from the App Store due to orientation.
If this is an iPhone issue that you're referring to, and you shouldn't allow upside down orientation support, try removing it, as explained in the attached post, as see if it resolves your issue.
Related
I made an iOS app with some web views an a contact page. You can navigate by using the toolbar on the bottom. I enabled landscape and, of cause portrait mode.
Should I enable upside down in my iOS app, too? Ore should i rather disable it? What is more user-friendly? What do you prefer?
If your app contains web views and contact pages then you should probably not enable upside down as it may not be user-friendly and cause inconvenience to the user while receiving calls, etc.
However, music and voice memo seems to be some situations where Apple saw fit to enable upside down. The reason is:
1.Voice Memos: Since the main microphone is on the bottom of the device, this app decides to allow this seemingly taboo orientation and kindly rotates the interface for you.
2.Music: It seems to be another case where Apple saw fit to allow an upside down orientation, but only if your device is plugged into, and playing music through, something like a car stereo. Maybe Apple accommodated for that kind of situation where the device often needs to be placed in a strange orientation in order to fit into a car setup.
Check this for reference.
There are also some apps which support upside-down texting. Go through the link for details.
So, it entirely depends on the functionality of your app to decide whether upside-down should be enabled or not. You can provide the use of your app to get more precise answers.
The upside down orientation on iOS was introduced mainly for iPad apps, where it's more common open an app with the device rotated of 180°.
So if your app support iPad you should enable this orientation. As confirmation in Apple Documentation you can read:
Important: It is strongly recommended that your iPad applications
support all orientations. This includes portrait, portrait
upside-down, landscape left and landscape right. iPad apps that
require an orientation must support both variants of that orientation.
We are using TouchID for our iPad app, which supports both Portrait & Landscape orientation.
According to our understanding, the TouchID authentication dialog doesn't support Landscape orientation, which is still fine; however, upon turning the screen to landscape mode, the TouchID dialog remains in portrait mode, but the viewcontroller also fails to rotate to landscape! Besides, the statusbar rotates to landscape mode, giving an ugly look.
We have observed the similar behavior on iTunes too. Please advice if this is the standard behaviour or is there any other way to solve the issues.
I have same problem in my app. It seems that Touch ID dialogue prevents view controller under from getting information about device rotation. I tested it on App Store - tried to buy app. When dialogue appeared on dialogue rotate, App Store didn't react to device rotation.
Tested on iOS 10.2 (14C92)
I am looking to allow app rotation on an iPad, but would like to keep it disabled on the iPhone, as it is too narrow.
So far, I only see instructions on one device or the other, but not both.
Any ideas?
In Xcode 6 you have to edit Info.plist:
I have a strange issue on iPAD. The app currently only supports Landscape.
However, when the user rotates the device to portrait and returns to the app, the app returns as portrait.
Another detail, the view has been presented modally before going into the background.
I am not sure if this is an iOS issue? or is there something I need to handle to catch orientation changes?
I saw that too many answers for this question but they almost about ios device, not about ios simulator. I want to detect orientation of iphone simulator. I rotate iphone simulator to landscape but so far all solutions return portrait orientation at launch app. Is this ios simulator's bug? I have no device to test, so i need to test on simulator first but it seems to be not work correct on simulator. Thanks for any explanation.
Try to delete portrait modes from the 'Supported interface orientations' array in the Info.plist file of your application. I was able to force landscape startup with this.