It appears that the Autoresizing
of views is no longer reliably working when building for iOS11 with XCode 9.
The layout of several views end up with the positioning of controls as they are in the XIB, but the appropriate resizing has not happened. This has been working fine in iOS10, and works with our old app running in iOS11. However, rebuilding the app the positioning and sizing fails.
Has something changed that impacts the use of autoresizingmask
?
Is there a way to automatically convert from AutoResizing
to AutoLayout and Constraints
?
Edit:
The controls that are giving trouble are the UINavigationBar
and UIToolBar
.
I'm working on this same issue today: one thing that has worked in some cases is swapping out for similar (but not identical) mask values. For example, one of our views didn't work with UIViewAutoresizingFlexibleHeight but it works with UIViewAutoresizingFlexibleBottomMargin.
I'm not aware of an automatic way to upgrade to AutoLayout - I actually use AutoLayout a lot in other projects, and the conceptual basis is pretty different...
I'll edit this answer if I find anything better.