Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

As I have developed the iOS application using Xcode 7.3. When reviewing the AutoLayout constraint on the device which having iOS 10 using Xcode 7.3 it properly display it but when using the Xcode 8 and then reviewing on the device then it does not show properly.

So my question if I am deploy the application on the AppStore using Xcode 7.3, so there is any chance that the AutoLayout constraint do not show properly in iOS 10.

Any help is much appreciated.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
232 views
Welcome To Ask or Share your Answers For Others

1 Answer

I am having the same issues in one of my iOS application as the constraint works in Xcode 7.x but not in Xcode 8, so I have found some work around for resolve it. Please find the below steps.

1) Open your storyboard in Xcode 8, then it popup regarding choose an initial device view, please select one of the option and then click on Choose Device. Please find the below GIF representation for same.

GIF

2) When you complete your changes, select the storyboard, go to File Inspector, on Interface Builder Document section, select the Opens In field and apply the Xcode 7.x. After that it popup regarding save so please select "Save and Close" option when it is prompted. Please find the below GIF representation for same.

GIF

3) Close the Xcode and then open the application.

Your storyboard changes will be saved, and your storyboard will function as it did on Xcode 7.x.

Hope it works for you!!!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...