Book description
Completed Updated for iOS 7 and Xcode 5
Auto Layout transforms the way you create iOS user interfaces. As
flexible as it is powerful, Auto Layout gives you unprecedented
control over your iOS user interfaces. But Auto Layout has a
reputation for difficulty. In iOS Auto Layout Demystified,
Second Edition, world-renowned iOS developer and author Erica Sadun
strips away the confusion, helping you gain Auto Layout mastery the
easiest way possible: by example.
Fully updated for iOS 7 and Xcode 5, this tutorial delivers
everything Sadun’s guides are famous for: clear explanations,
expert tips, proven best practices--and, above all, plenty of code
to learn from and reuse.
Step by step, Sadun explains how Auto Layout “thinks,”
how it works, where it fits, and why it’s more useful (and
simpler) than you ever imagined. She offers practical solutions for
a wide variety of real-world iOS development challenges, plus
innovative ways to use Auto Layout to build interactive elements,
animations, and more.
If you’re an experienced iOS developer, this guide will
expand your design possibilities, helping you build apps that are
superbly usable and intuitive and stand out even in the most
crowded marketplace.
Coverage includes
Mastering Auto Layout’s basic concepts, techniques, and approach
Defining unambiguous, satisfiable constraints that express your layout exactly how you intend
Overcoming obstacles to constraint-based user interface design in Interface Builder
Using visual formatting to express how items are laid out vertically and horizontally
Making visual formats more flexible with metrics dictionaries and layout options
Debugging constraints and deciphering those bewildering Xcode log messages
Using descriptive techniques to uncover and express natural relationships in your design
Applying iOS Auto Layout techniques in Mac OS X apps too
Table of contents
- About This eBook
- Title Page
- Copyright Page
- Dedication Page
- Table of Contents
- Preface
- Acknowledgments
- About the Author
- 1. Introducing Auto Layout
- 2. Constraints
-
3. Interface Builder Layout
- Designing in IB
- Disabling Auto Layout
- Basic Layout and Auto-Generated Constraints
- A Guided Tour of IB Elements
- Adding Constraints
- Previewing Layouts
- Inspecting Constraints
- View Size Inspector
- The Resolution Menu
- Constraints/Resizing Pop-Up Menu
- The Missing Views Problem
- Balancing Requests
- Hybrid Layout
- Removing IB-Generated Constraints
- Exercises
- Conclusions
-
4. Visual Formats
- Introducing Visual Format Constraints
- Options
- Variable Bindings
- Metrics
- Format String Structure
- Orientation
- View Names
- Connections
- View Sizes
- Format String Components
- Getting It Wrong
- NSLog and Visual Formats
- Constraining to a Superview
- View Stretching
- Constraining Size
- Building Rows or Columns
- Matching Sizes
- Why You Cannot Distribute Views
- Exercises
- Conclusions
-
5. Debugging Constraints
- Xcode Feedback
- Reading Console Logs
- Examining Constraint Logs
- A Note About Layout Math
- Constraint Equation Strings
- Adding Names
- Describing Views
- Unexpected Padding Example
- The Hugged Image Example
- View Centering Example
- Descent Reports
- Ambiguity Example
- Expanding on Console Dumps Example
- Visualizing Constraints
- Launch Arguments
- Internationalization
- Profiling Cocoa Layout
- Auto Layout Rules of Debugging
- Exercises
- Conclusions
- 6. Building with Auto Layout
- 7. Layout Solutions
- A. Answers to Exercises
- Index
Product information
- Title: iOS Auto Layout Demystified, Second Edition
- Author(s):
- Release date: October 2013
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780133750799
You might also like
book
iOS Auto Layout Demystified
Auto Layout re-imagines the way developers create user interfaces. It provides a flexible and powerful system …
book
iOS UICollectionView: The Complete Guide, Second Edition
Fully updated for iOS 7, will help you build highly immersive, cutting-edge iOS user interfaces that …
book
Beginning Objective-C
Objective-C is today's fastest growing programming language, at least in part due to the popularity of …
book
iOS Core Animation: Advanced Techniques
Core Animation is the technology underlying Apple’s iOS user interface. By unleashing the full power of …