【文件属性】:
文件名称:Modern Auto Layout.zip
文件大小:17.73MB
文件格式:ZIP
更新时间:2022-10-24 00:31:04
iOS Autolayout swift
What's In The Book?
How did layout work before Auto Layout?
Using autoresizing masks
How to subclass UIView and make friends with layoutSubviews
How to build programmatic layouts without storyboards
What is Auto Layout?
What is a constraint?
Who owns a constraint?
How many constraints do I need?
The many ways to create and edit a constraint
Viewing layout warnings and errors
Interface Builder tips and tricks
How best to activate and deactivate constraints
Disabling the autoresizing mask (you will forget)
Creating constraints with NSLayoutConstraint, Visual Format Language and Layout Anchors
Which should you use? (Take a guess...)
Safe area layout guides - embrace the notch!
Layout margins everywhere
Layout guides... goodbye spacer views?
Layout priorities - as close as possible please...
Intrinsic content size - the natural size
Content mode - fit, fill, redraw...
Content hugging and compression resistance - don't stretch me, don't squeeze me!
Get started with stack views...
...then dive deeper
Dynamically updating stack views
Adding background views
Stack view oddities - nobody's perfect
The layout pass - what's going on?
Why you probably don't need updateConstraints
Animating constraints
Get fancy with custom layouts
Alignment rectangles - bring back the shadow
Unsatisfiable constraints
How to add identifiers to views and constraints
Ambiguous layouts - tell me more!
Using the view debugger
Private debug methods - keep them to yourself.
Layout loops...layout loops...layout loops
【文件预览】:
Modern Auto Layout.pdf