iOS Auto Layout Demystified
Home > Computing and Information Technology > Computer programming / software engineering > Programming and scripting languages: general > iOS Auto Layout Demystified
iOS Auto Layout Demystified

iOS Auto Layout Demystified

|
     0     
5
4
3
2
1




Out of Stock


Notify me when this book is in stock
About the Book

Auto Layout re-imagines the way developers create user interfaces. It provides a flexible and powerful system that describes how views and their content relate to each other and to the windows and superviews they occupy. In contrast to older design approaches, this technology offers incredible control over layout with a wider range of customization than frames, springs, and struts can express. In this guide, Erica Sadun, bestselling author of The Core iOS 6 Developer's Cookbook and The Advanced iOS 6 Developer's Cookbook, helps readers learn how to use Auto Layout effectively, even masterfully, by providing an abundance of examples alongside plenty of explanations and tips. Instead of struggling with class documentation, you learn in simple steps how the system works and why it’s far more powerful than you first imagined. You read about common design scenarios and discover best practices that make Auto Layout a pleasure rather than a chore to use. Sadun includes examples of non-obvious ways to use Auto Layout to build interactive elements, animations, and other features beyond what you might normally lay out in Interface Builder to help expand the reader’s design possibilities. With this book you will learn The basic concepts that form the foundation of Auto Layout How to create clear and satisfiable rules of your layout, called constraints How to work effectively with the Interface Builder Layout What visual constraints look like, how to work with them, and how they are used in your projects How to debug constraints How to design interfaces when working with Auto Layout Effective solutions to the most common real-world problems and challenges Approximately 238 pages. For related content by author Erica Sadun, see The Core iOS 6 Developer’s Cookbook, and The Advanced iOS 6 Developer’s Cookbook.

Table of Contents:
Preface Chapter 1: Introducing Auto Layout Saying “No” to Auto Layout Saying “Yes” to Auto Layout              Visual Relationships              Content-Driven Layout              Prioritizing Rules              Auto Layout Strengths Constraints              Satisfiability              Sufficiency Constraint Attributes Missing Views              Underconstrained Missing Views              Missing Views with Inconsistent Rules              Tracking Missing Views Ambiguous Layout              Exercising Ambiguity              Visualizing Constraints Intrinsic Content Size Compression Resistance and Content Hugging Auto Layout and Frames              Visualizing Alignment Rectangles              Image Alignment Insets              Declaring Alignment Rectangles              Implementing Alignment Rectangles Summary Chapter 2: Constraints Constraint Types Priorities              Conflicting Priorities              Enumerated Priorities Content Size Constraints              Content Hugging              Compression Resistance              Setting Content Size Constraints Layout Constraints              Constraint Math The Layout Constraint Class              First and Second Items Creating Layout Constraints Using NSLayoutConstraint              Unary Constraints              Zero-Item Constraints View Items Constraints, Hierarchies, and Bounds Systems Installing Constraints Removing Constraints Comparing Constraints              Using Matched Constraints Laws of Layout Constraints Summary Chapter 3: Interface Builder Layout Constraints in Interface Builder              What’s What in the IB Editor              Beginning Constraints Constraint Listings              Constraint Colors              Constraint Icons              Constraint Listings and Xcode Labels              Adding Xcode Identities Selecting Constraints Inspecting Constraints              The Constraint Attributes Inspector View Size Inspector              Frame and Layout Rectangles              Constraint Options Adding User Constraints              Including Your Own Constraints              Conflicting Constraints Building New Constraints The Missing Views Problem Balancing Requests              Balancing Constraint Priorities Constraints and Outlets Hybrid Layout              Building a NIB File for Testing              Adding the NIB File in Code              Advantages of Hybrid Layout Constraints/Resizing Pop-Up Menu Summary Chapter 4: Visual Formats Introducing Visual Format Constraints Options              Alignment              Combining Options              Skipping Options Variable Bindings              The Problem with Indirection              Indirection Workaround Metrics              Real-World Metrics Format String Structure Orientation              Retrieving Constraints by Axis View Names              Superviews Connections              Empty Connections              Standard Spacers              Numeric Spacers              Referencing the Superview              Spacing from the Superview              Flexible Spaces              Parentheses              Negative Numbers              Priorities              Multiple Views 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              How to Pseudo-Distribute Views (Part 1: Equal Centers)              Pseudo-Distributing Views (Part 2: Spacer Views) Summary Chapter 5: Debugging Constraints Reading Console Logs              Example: Autosizing Issues              Solution: Switch Off Autosizing Translation              Example: Auto Layout Conflicts              Solution: Adjusting Priorities              The Nuclear Approach              The Balance Approach              Tracing Ambiguity Examining Constraint Logs              Example: Alignment Constraint              Example: Standard Spacers              Example: Equation-Based Constraint              Example: Complex Equation              Example: The Multiplier and Constant A Note about Layout Math Constraint Equation Strings Adding Names              Using Nametags              Naming Views Describing Views Example: Unexpected Padding Example: The Hugged Image Example: View Centering              Retrieving Referencing Constraints Descent Reports Example: Ambiguity Example: Expanding on Console Dumps Visualizing Constraints              Automating Visualization Launch Arguments Internationalization              Doubled Strings              Flipped Interfaces (OS X)              Flipped Interfaces (iOS) Profiling Cocoa Layout Auto Layout Rules of Debugging Summary Chapter 6: Building with Auto Layout Basic Principles of Auto Layout Layout Libraries Planning Interfaces Building for Modularity Updating Constraints              Calling Updates and Animating Changes              Animating Constraint Changes on OS X              Fading Changes Handling Orientation-Specific Text Layout Designing for Edge Conditions Building a View Drawer              Building the Drawer Layout              Managing Layout for Dragged Views              Dragged Views Window Boundaries Summary Chapter 7: Layout Solutions Table Cells Preserving Image Aspect Accordion Sizing Auto Layout              Building a Paged Image Scroll View              Inherent Drawbacks Centering View Groups Custom Multipliers and Random Positions Building Grids Constraint Animation on Steroids Summary


Best Sellers


Product Details
  • ISBN-13: 9780133440676
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison Wesley
  • Language: English
  • Weight: 1 gr
  • ISBN-10: 0133440672
  • Publisher Date: 03 Apr 2013
  • Binding: Digital download
  • No of Pages: 240


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
iOS Auto Layout Demystified
Pearson Education (US) -
iOS Auto Layout Demystified
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

iOS Auto Layout Demystified

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!