AutoLayout restriction issues in iOS 10, Xcode 8

How I developed an iOS application using Xcode 7.3 . When viewing an AutoLayout restriction on a device that has iOS 10 using Xcode 7.3 , it displays it correctly, but when using Xcode 8 and subsequently viewing it on the device, it does not display properly.

So my question is if I deploy the application to the AppStore using Xcode 7.3 , so there is a possibility that the AutoLayout restriction AutoLayout not display correctly in iOS 10 .

Any help is greatly appreciated.

0
source share
2 answers

I am having the same problems in one of the iOS apps since the restriction works in Xcode 7.x but not in Xcode 8, so I found some problems to solve it. You will find the following steps.

1) Open the storyboard in Xcode 8 , then a pop-up window dedicated to choosing the initial appearance of the device, select one of the options and click "Select device". Please find below GIF view for the same.

GIF

2) When you make your changes, select the storyboard, go to the “File inspector” section, in the “Interface document” section, select the “Open” field and apply Xcode 7.x After that, a save pop-up window will appear, so when prompted, select "Save and close." Please find below GIF view for the same.

GIF

3) Close Xcode and open the application.

Changes to the storyboard will be saved, and the storyboard will work the same as on Xcode 7.x.

Hope this works for you.

+1
source

The line specified by Xcode 7.3 will not affect the restriction problem on iOS10.

0
source

Source: https://habr.com/ru/post/1266753/


All Articles