> On May 2, 2015, at 2:43 PM, Zack Morris <[email protected]> wrote: > > * There is still another bug where when I change the simulated device > dimensions, my views don’t automatically resize based on their constraints. > If I highlight a view and Editor->Resolve Layout Issues->Update Frames, it > works for Selected Views but not All Views. I can prove the bug is real > because if I create a fresh view and set identical constraints, it resizes > correctly when simulated metrics change. I think there might be stale > metadata attached to my views in the storyboard XML, possibly from a previous > version of Xcode, that prevents this from working properly. Since I have 13 > view controllers and many hundreds (thousands?) of views in the storyboard, > there is no way that I can rebuild each one by hand.
Turns out that this bug was actually due to an imageView’s image being set to tile rather than stretch. It has a clear border on the right because up till now it had only been tiled vertically. So it looked like no matter what I did, I couldn’t get the view to resize, but a new view worked just fine because it wasn’t set to tile. I wish we could specify tile/stretch flags for the x and y axes independently. There are other places too like pinch zooming UIScrollView where I wish the x and y axes were independent. These design decisions can cause heartache for developers but they aren’t really bugs. Sorry for the false alarm. Zack Morris _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to [email protected]
