Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8 Storyboard - Updating existing storyboards. App republish required?

I just updated to Xcode 8. On selecting any of the devices at bottom, constraints are to be reset. Since the view is now not accommodating on the screens. Earlier to this, I was using wAny hAny window and also supplied the constraints. These constrains are even there now but need to be changed.
I am assuming the only way I see is to update the frames and constraints for all devices (wondering it is a boon or curse). But since a single constraint will be same for all devices, how will it's value be retained considering it has to be used in code.
How to update the existing storyboards to fit Xcode 8 ?
Having said this, storyboard needs to be restructured which means app needs to be published again as the current build would give layout issues on iOS 10.
Is my reason valid enough ?

like image 308
Nitish Avatar asked Sep 14 '16 09:09

Nitish


1 Answers

I am not sure I understand your question, but I ran into a situation that I think may have been similar. After upgrading a project to Xcode 8 my storyboards did not appear to have the correct constraints obeyed. Everything would still work when I compiled and tested, but Xcode storyboards would look all wrong.

In addition to this, Xcode presented a whole bunch of warnings that "Frame for XYZ will be different at run time."

I found that I could click in the small yellow warning arrow next to the scene in the structure pane and then click on the small yellow warning icon next to one of the misplaced views. From the popup I selected Update frames and Apply to all views in this container and then I clicked the Fix misplacements button.

This seemed to clean up the storyboard and remove all the warnings.

like image 152
EFC Avatar answered Nov 07 '22 14:11

EFC