iOS Question [SOLVED by you know who] shouldAutorotate is deprecated - big problem

JackKirk

Well-Known Member
Licensed User
Longtime User
In this post:

https://www.b4x.com/android/forum/threads/disable-autorotate-on-a-single-view.80699/#post-511594

Erel shows a way to manage rotations.

I created a code snippet:

https://www.b4x.com/android/forum/t...essentially-portrait-only-app.104006/#content

That used this to selectively allow rotation and a "form" of snapback.

This has been working well in my major iOS app - until now.

It is broken in iOS 17.3.1 and possibly earlier - I have tested this on both a neighbour's iPhone 11 running iOS 17.2.1 and on AWS Device Farm with an iPhone 15 Pro Max running iOS 17.3.1

When I google "UINavigationController shouldAutorotate" I find:

https://developer.apple.com/documentation/uikit/uiviewcontroller/1621419-shouldautorotate

which says shouldAutorotate is deprecated and gives an alternate solution which is beyond my paygrade.

Can anyone come up with an alternate to the post from Erel I cite at the start of this post.

Thanks in anticipation...
 
Last edited:
Top