Beruflich Dokumente
Kultur Dokumente
Session 406
Kevin Cathey Tony Ricciardi
Interface Builder Engineer Interface Builder Engineer
These are confidential sessions—please refrain from streaming, blogging, or taking pictures
What is Auto Layout?
Auto Layout is a Constraint-Based,
Descriptive Layout System
What Is Auto Layout?
2013
WWDC 2013
WWDC
WWDC
2013
WWDC 2013
WWDC 2013
WWDC 2013
WWDC 2013
WWDC 2013
WWDC 2013
• Control.centerY = Superview.centerY
• Control.right = Superview.right - <padding>
• Control is centered vertically in its superview
• Control is a fixed distance from the right of the superview
Auto Layout
WWDC 2013
• Control.centerY = Superview.centerY
• Control.right = Superview.right - <padding>
• Control is centered vertically in its superview
• Control is a fixed distance from the right of the superview
Auto Layout is a constraint-based, descriptive layout system
■ Disable translatesAutoresizingMaskIntoConstraints
More Information on Auto Layout
Previous WWDC sessions on Auto Layout
Introduction to Auto Layout for iOS and OS X WWDC 2012
Add Constraints
Initial Layout
Add Constraints
Maintain
Demo
Adding constraints
Initial Layout
Maintain
Add Constraints
Maintain
Debug & Resolve
Initial Layout
Intermediate States
Intermediate States
Intermediate States
Intermediate States
Intermediate States
Title Detail
Ambiguous Frames
Title Detail
Title Detail
Title Detail
Conflicting Constraints
Conflicting Constraints
Conflicting Constraints
Misplaced Views
Misplaced Views
Demo
Debugging
Debugging
Debugging
• Canvas decorations
Debugging
• Canvas decorations
• Xcode Issues Navigator
Debugging
• Canvas decorations
• Xcode Issues Navigator
• Quick fixes via the canvas resolving menu
Debugging
• Canvas decorations
• Xcode Issues Navigator
• Quick fixes via the canvas resolving menu
• Detailed help using the outline view
Compatibility
Compatibility
Dave DeLong
App Frameworks and Developer Tools Evangelist
delong@apple.com
Nob Hill
Interface Builder Core Concepts Wednesday 9:00AM
Related Labs
Tools Lab B
Interface Builder Thursday 9:00AM
Tools Lab B
Interface Builder Friday 9:00AM