Your First Swift 4 & iOS 11 App - Part 43: | Ray Wenderlich

Learn how to use Auto Layout, a core UIKit technology that makes it easy to support many different screen sizes.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3990-your-first-swift-4-ios-11-app/lessons/43

There is a small bug that actually shows up in the video when the autolayout constraints are put in place for the About screen Close button. Because slicing was set up for the normal state image, autolayout resizes the button to the minimum size. The image for the highlighted state was not marked for slicing, so it remains its original size. Removing the slicing fixes the button.

I have not, however, gotten as far as understanding why the autolayout resizes the sliced button.

This topic was automatically closed after 166 days. New replies are no longer allowed.