Auto Layout by Tutorials (First Edition): Build Dynamic User Interfaces on iOS
Book information
Description
Learn how to use Auto Layout! Auto Layout is Apple’s elegant solution to making your user interfaces flexible and adaptable. It can be daunting to learn to use its true power without someone to guide you. That’s where Auto Layout by Tutorials comes to the rescue! This book will be your guide as you explore and master the many capabilities of Auto Layout. Who This Book Is For This book is for iOS developers of all skill levels, from those just getting started building user interfaces to the experienced hands who want to get more from Auto Layout. Topics Covered in Auto Layout by TutorialsInterface Builder: Learn to use Interface Builder to construct and maintain your user interfaces. Stack Views and Scroll Views: Learn how these special view types interact with Auto Layout and how best to utilize them in your apps. Views: Discover how to make your user interface dynamically adapt to its content. Animating Constraints: See how to animate your Auto Layout constraints to provide feedback, focus user attention and improve navigation. Adaptive Layout: Learn to use Auto Layout to make adjustments for screen size, orientation, Dynamic Type size and more. Resolving Common Issues: Discover how to investigate when things go awry and learn how to resolve Auto Layout conflicts. One thing you can count on: After reading this book, you’ll be prepared to harness the full power of Auto Layout in all of your apps. About the Tutorial Team The Tutorial Team is a group of app developers and authors who write tutorials at the popular website raywenderlich.com. We take pride in making sure each tutorial we write holds to the highest standards of quality. We want our tutorials to be well written, easy to follow, and fun. If you’ve enjoyed the tutorials we’ve written in the past, you’re in for a treat. The tutorials we’ve written for this book are some of our best yet - and this book contains detailed technical knowledge you simply won’t be able to find anywhere else. About the Cover About the Authors About the Editors What You Need Book License Book Source Code & Forums Chapter 1: Introducing Auto Layout What is Auto Layout? Beginning Auto Layout UIView and the View Hierarchy Thinking in Auto Layout Constraints Intrinsic content size Priorities Chapter 2: Construct Auto Layout with the Interface Builder Setting up the launch screen layout using a storyboard Using Xibs Challenges Key points Chapter 3: Stack View Implementing a vertical stack view Adding constraints to a stack view Embedding views into a horizontal stack view Alignment and distribution Nesting stack views When not to use stack views Challenges Key points Chapter 4: Construct Auto Layout with Code Launching a view controller from the storyboard in code Launching a view controller without initializing storyboard Building out a view controller’s user interface in code Auto Layout with visual format language Benefits and drawbacks from choosing the code approach Challenges Key points Chapter 5: Scroll View Working with scroll view and Auto Layout Adding the Options Menu to the Profile Screen Challenge Key points Chapter 6: Self-Sizing Views Accomplishing self-sizing views Table views Collection View Key points Chapter 7: Layout Guides Available Layout Guides Creating layout guides Creating custom layout guides Key points Chapter 8: Content-Hugging & Compression-Resistance Priorities Intrinsic Size and Priorities Practical use case Challenge Key points Chapter 9: Animating Auto Layout Constraints Animate Auto Layout using Core Animations Key points Chapter 10: Adaptive Layout One storyboard to run them all Size classes Adaptive presentation UIKit and adaptive interfaces Adaptive images Challenge Key points Chapter 11: Dynamic Type Why Dynamic Type? Setting the preferred font size Making labels support Dynamic Type Making custom fonts support Dynamic Type Managing layouts based on the text size Supporting Dynamic Type with UITableView Supporting Dynamic Type with UICollectionView Challenges Key points Chapter 12: Internationalization & Localization What’s internationalization and localization? Auto Layout and internationalization Previewing languages in Interface Builder Key points Chapter 13: Common Auto Layout Issues Understanding and solving Auto Layout issues Common performance issues Key points Chapter 14: Under the Hood of Auto Layout Alignment rectangles versus frame rectangles Fitting Auto Layout in the big picture Solving constraints Solving equality constraints Solving linear programming problems Cassowary Key points Chapter 15: Optimizing Auto Layout Performance Betting safe on performance with Interface Builder Factoring in the render loop Why update constraints Constraints churn Unsatisfiable constraints Constraints dependencies Advanced Auto Layout features and cost Apple optimizing UIKit Key points Chapter 16: Layout Prototyping with Playgrounds Getting started with playgrounds Creating a custom button Moving code to the Sources folder Working with more complex custom views Key points Chapter 17: Auto Layout for External Displays Getting started Building a layout for an external display Configuring an external display window Handling an existing external display connection Connecting a new external display Disconnecting an external display Accommodating external display resolutions Key points Chapter 18: Designing Custom Controls Getting started Applying adaptive layout to a custom view Integrating a custom view from NIB to storyboard Visualizing XIB/NIB files in storyboards Preparing custom views for Interface Builder Making a custom UIButton Making a custom UIControl Implementing accessibility features. Key points Conclusion
Similar books
Mastering ARKit: Apple’s Augmented Reality App Development Platform (Maker Innovations Series)
2024 · PDF
Mastering ARKit: Apple’s Augmented Reality App Development Platform
2024 · PDF
Mastering ARKit: Apple’s Augmented Reality App Development Platform
2022 · PDF
Machine Learning by Tutorials : Beginning Machine Learning for Apple and iOS
2021 · PDF
Unity Games by Tutorials: Make 4 Complete Unity Games from Scratch Using C#
2019 · PDF
macOS by Tutorials macOS App Development for iOS Developers
2022 · PDF
Server Side Swift with Kitura : Building Web APIs and Apps in Kitura
2019 · PDF
Data Structures & Algorithms in Swift : Implementing Practical Data Structures with Swift
2021 · PDF