Site icon Accidentally in Code

#iOSDevUK – Martin Pilkington: Thinking in NSLayoutContraints

My notes from Pilky’s iOSDevUK talk. It was so good that after watching it I actually thought I understood AutoLayout (I later discovered I was wrong). His slides (and notes) are here.

Credit: Wikimedia

What is AutoLayout?

Constraints: How do they work?

Attributes

Effectively variables, so what do we have:

Relationships

Multipler and Constant

Priority

YOUR NEW MENTAL MODEL

How should you be thinking?

Relative vs Absolute

Thinking in Values

Constraining a View

Intrinsic Content Size

Calculating UITableViewCellHeights

Autoresizing UIImageVIew

Switching Orientation

Animation

Exit mobile version