Changes

Jump to: navigation, search

An iOS 9 Auto Layout Example

12 bytes removed, 20:34, 1 February 2016
m
Text replacement - "<google>BUY_IOS9</google>" to "<htmlet>ios9</htmlet>"
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
With the settings entered, click on the Add 4 Constraints button to implement the constraints.
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
Next, select the right most of the two labels, display the Pin menu and enable the Spacing to nearest neighbor constraint for the top edge of the view. Instead of entering a point value into the spacing field, use the drop down menu to select Use Standard Value. This will set the spacing to a value conforming to Apple’s user interface style guidelines for iOS apps. Note that this menu also provides the option to set the constraint to the top edge of the View or to the Top Layout Guide. The top layout guide is the blue dotted line that appears when a view is moved close to the edge of the containing view (the horizontal line in Figure 20 1). For the purposes of this example, leave the Top Layout Guide option selected and click on the Add 1 Constraint button.
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>

Navigation menu