Episode Links
WWDC Videos on Autolayout
These videos are immensely helpful. If you have a developer account, then I highly recommend you watch all three videos.
Tips for Autolayout
- Be careful about resizing views manually. Sometimes it can add additional constraint that you did not intend.
- Watch the debugger window to auto layout errors. You certainly want to resolve these before shipping, otherwise you may have unintended layouts
- Use ⌘= to size a view to its intrinsic size. Use this for
UIButtons, UILabels, and UIImageViews to automatically size to their contents.
Back