Building the User Interface Using a Storyboard
Open Main.storyboard by clicking it in the project navigator in Xcode. Open the library with the keyboard shortcut ⇧⌘L and drag a Vertical Stack View onto the Measurement View Controller Scene. Select the stack view and click the Add New Constraints button—the one with a square between two vertical lines—in the lower right of the Xcode editor view. Pin the stack view to the safe area of the super view by entering a value of 10 in the four text fields in the upper third of the constraints pop-up. Click the red constraint markers next to the text fields if they are not active and select the “Constrain to margins” check box. The relevant part of the user interface in the Interface Builder should ...
Get Build Location-Based Projects for iOS now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.