Changes

Jump to: navigation, search

An Introduction to Auto Layout in iOS 8

3 bytes added, 15:42, 4 December 2014
Three Ways to Create Constraints
* '''Interface Builder''' – Interface Builder has been modified extensively to provide support for the visual implementation of Auto Layout constraints in user interface designs. Examples of using this approach are covered in the [[Working with iOS 8 Auto Layout Constraints in Interface Builder]] and [[An iOS 8 Auto Layout Example]] chapters of this book.
* '''Visual Format Language''' – The visual format language defines a syntax that allows constraints to be declared using a sequence of ASCII characters that visually approximate the nature of the constraint being created with the objective of making constraints in code both easier to write and understand. Use of the visual format language is documented in the chapter entitled [[Understanding the iOS 8 Auto Layout Visual Format Language]].
* '''Writing API code''' – This approach involves directly writing code to create constraints using the standard programming API calls, the topic of this is covered in [[Implementing iOS 8 Auto Layout Constraints in Swift Code]].
Wherever possible, Interface Builder is the recommended approach to creating constraints. When creating constraints in code, the visual format language is generally recommended over the API based approach.
== Constraints in more Detail ==

Navigation menu