Questions tagged [shouldautorotate]
17 questions
7
votes
2 answers
Set shouldAutorotate to false with Photolibrary
If I add a popover with access to my photo gallery from the iPad the system always crash with the following message:
Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common…

derdida
- 14,784
- 16
- 90
- 139
3
votes
2 answers
shouldAutorotate -> false, still simulator rotates
I'm making an app which supports landscape orientations only when playing a video. Otherwise, all the scenes support only portrait orientation. I've checked portrait, landscape left and right in project settings. I've written the following code in…

Suvrat Apte
- 161
- 10
2
votes
1 answer
How to replace shouldAutorotate, now deprecated in iOS16. Any examples?
I am have trouble trying to update our app from relying on "shouldAutorotate". We are using Objective C.
Currently, in iOS15, the "shouldAutorotate" updates the location and size of some items in the current view depending on the orientation of the…

jsdigital
- 21
- 2
2
votes
1 answer
iOS autorotate is not working when you have different orientation screens
I am working on an App which is written in Objective-C. I have more screens and all screens are Landscape Left and Landscape Right orientations and these screens must not be in portrait mode. But I have got 3 different screens which should be in…

Bekzod Rakhmatov
- 21
- 1
- 5
2
votes
1 answer
shouldAutorotate called on iPhone but not on iPad
I have a universal app for iOS 8/9 which contains a MainStoryboard_iPhone and a MainStoryboard_iPad. The entry point in the storyboard is a RootViewController with a Tab Bar. The RootViewController controller is quite simple
-…

BruceT
- 23
- 4
1
vote
1 answer
- (NSUInteger)supportedInterfaceOrientations is not getting called through a custom framework in project
(NSUInteger)supportedInterfaceOrientations is not getting called in a custom framework which I have used in my project's UIViewController, while in separate project it is working fine and getting called properly
(BOOL)shouldAutorotate
{
return…

Abhishek Sinha
- 47
- 4
1
vote
1 answer
shouldAutorotate method not working
I'm a little confused about the auto rotation methods in iOS. I'm using Swift for my app, which contains a tab bar controller and a nav bar controller.
The issue is I want all view controllers to be locked in Portrait mode except for one view…

dcotter
- 312
- 6
- 22
0
votes
0 answers
UIApplicationInvalidInterfaceOrientation [IPad]
- Supported orientations has no common orientation with the application, and [_UIDatePickerContainerViewController shouldAutorotate] is returning YES
Fatal Exception: UIApplicationInvalidInterfaceOrientation
0 CoreFoundation 0x9d94…

Vikas Saini
- 483
- 4
- 16
0
votes
1 answer
Supported Interface Orientations in info.plist seem to block calls to shouldAutorotate
I’m designing an iPad/iPhone application in which the interface is designed to look as good in landscape as in portrait, and I’d like the interface to appear at launch as gracefully in one orientation as the other. At the same time, I need the…

Jeff J
- 3
- 5
0
votes
1 answer
How to rotate screen with the `var shouldAutorotate` returns false
How to set the specified page rotation without having it rotate automatically? I found that the screen can rotate only when var shouldAutorotate returns yes, but I don't want to do that automatically,I want to control the moment of rotate by myself

kivan cheng
- 1
- 1
0
votes
2 answers
Trying to prevent orientation change on an iPhone 4
I have a rotation (orientation change) issue in an iOS app.
The app has several view controllers to navigate.
I want it to be possible to rotate except for iPhone 4 (3.5 inches devices).
On a 3.5 inches device it shoulld always stay in portrait…

Michel
- 10,303
- 17
- 82
- 179
0
votes
2 answers
cannot get shouldautorotate to fire when changing orientation
I'm developing an app with Xcode9 using Swift4 and it was originally intended for just iPads but now needs to run on phones too. I need to lock the phones to Portrait and iPads remain Portrait/Landscape.
I've done this before using the…

user616076
- 3,907
- 8
- 38
- 64
0
votes
1 answer
Libgdx - Rotate an object using its movement
I'm trying to implement an autorotation method for a SpriteAnimation class (trying to port SpriteAnimation).
Everything is working, the sprite draws correctly (it uses the correct animations) it just doesn't rotate properly if at all, normally it…
user8254283
0
votes
2 answers
iOS with NavigationController As Root Make, One Controller ONLY Landscape
I have an app in which the root controller is a UINavigationController. Push one button, and it pushes another view controller. Push yet another and it starts an AVCaptureSession with Overlay. I want THAT view, and that view ONLY to be Landscape,…

user717452
- 33
- 14
- 73
- 149
0
votes
3 answers
Crash on shouldAutorotate() method when UIAlertview show in Landscape viewcontroller?
I am working on a app in which I am using only one orientation which is Portrait. This is device orientation setting:
But In my app there is Video player (Custom Player of MPMoviePlayerViewController) which I wanted to show in Landscape Right mode…

ajeet sharma
- 803
- 10
- 37