Xcode Autoresize Subviews Not Working
I have a .xib with a UIViewController sized for the iPhone 5 (4" screen).
The problem is when I go on the iPhone 4 (3.5" screen) simulator the view
does not autoresize. The bottom part of the view just gets cut off. I know
.storyboards autoresize so why not .xibs? How can I autoresize the view? I
created a custom ViewController class which check if the phone is a 3.5"
screen and then adjusts the main view accordingly, but this complains with
a long warning about conflicting constraints and it doesn't change the
subviews. Is there a better way or should I continue with what I am doing?
No comments:
Post a Comment