Saturday, November 16, 2024
HomeiOS Developmentxcode - iOS Launch Display storyboard adjustments constraints on remainder of person...

xcode – iOS Launch Display storyboard adjustments constraints on remainder of person interface

[ad_1]

I’ve an iPad app that features a mixture of xib information and storyboard information. The app makes use of Launch Photos however since they’re deprecated in iOS 13, I’m migrating the app to make use of a Launch Display Storyboard as an alternative.

To do that, I added a brand new Launch Display storyboard file to the challenge, modified the background colour of the Launch Display UIView to purple, and set the app’s Goal > Common > Launch Display File to my new Launch Display storyboard file. After I run the app, the purple Launch Display comes up for a second as anticipated.

Nevertheless, when utilizing a Launch Display Storyboard on any iPad machine that has the swipe up indicator bar, the place of views on the person interface get tousled for each xib information and storyboard information. Their constraints are now not honored.

Under are examples. The left column reveals what numerous iPad interfaces appears to be like like of their appropriate kind when the unique Launch Photos are used. The correct column reveals what those self same iPad interfaces seem like when a Launch Display Storyboard is used. This explicit display screen of the interface is a xib file, nevertheless the identical habits occurs for different screens which can be constructed as storyboard information.

(1) Why are the constraints of the views of the app getting altered by merely switching to utilizing a Launch Display Storyboard as an alternative of Launch Photos?

(2) How do I exploit a Launch Display Storyboard with out having to change the present xib information and storyboards for any of the iPad gadgets (i.e., with or with out the swipe up bar)?

(Utilizing XCode 13.3, iOS 15.4, Goal-C)

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments