Thursday, August 11, 2022
HomeiOS Developmentios - Has anybody been capable of override/block the brand new iPadOS...

ios – Has anybody been capable of override/block the brand new iPadOS 15 conduct of rotating iPhone apps in panorama?

[ad_1]

The brand new conduct

Ideally we would have native iPad help, however that is a methods off and never possible for the time being. So for now we’ve got to work with iPad operating the iPhone app. Hybrid Swift and Goal-C utilizing UIKit, for context.

The app I am engaged on has a digital camera view controller that, previous to iPadOS 15, wouldn’t rotate the sphere of view between portrait and panorama. Nevertheless, with this new rotation conduct, the UI is proven in portrait when the iPad is in panorama. Within the case of the digital camera, the sphere of view is now flipped 90º. The captured photos usually are not flipped, however the sideways discipline of view is not a great look.

What I’ve tried/noticed to this point is the next:

  • This new rotation conduct isn’t ruled by the UIViewController’s rotation strategies. Overriding shouldAutorotate and supportedInterfaceOrientations doesn’t forestall this rotation. So that is occurring on the system stage, and never the view controller stage.

  • On the system stage, I solely know of 1 strategy to programmatically change orientation, utilizing the personal setter on UIDevice’s orientation property. Clearly, personal APIs are a no-no for the App Retailer, and a hack to leverage them could break sooner or later. Not a great answer both.

At this level I am on the finish of my rope. I’ve scoured Google and StackOverflow to be taught extra about how this new characteristic works, at a technical stage, however particulars are sparse. If anybody has extra info or expertise with this, that might be nice. Even when the reply is ‘no cube’. Thanks!

[ad_2]

RELATED ARTICLES

Most Popular

Recent Comments