hfossli
hfossli

Reputation: 22962

NSLayoutAttribute's explained

I find the documentation a little sparse. Here's an example

NSLayoutAttributeTrailing
  The trailing edge of the object’s alignment rectangle.
  Available in iOS 6.0 and later.
  Declared in NSLayoutConstraint.h

Specifically I want all these explained

NSLayoutAttributeLeft
NSLayoutAttributeRight
NSLayoutAttributeTop
NSLayoutAttributeBottom
NSLayoutAttributeLeading
NSLayoutAttributeTrailing
NSLayoutAttributeWidth
NSLayoutAttributeHeight
NSLayoutAttributeCenterX
NSLayoutAttributeCenterY
NSLayoutAttributeBaseline
NSLayoutAttributeLastBaseline
NSLayoutAttributeFirstBaseline
NSLayoutAttributeLeftMargin
NSLayoutAttributeRightMargin 
NSLayoutAttributeTopMargin
NSLayoutAttributeBottomMargin 
NSLayoutAttributeLeadingMargin 
NSLayoutAttributeTrailingMargin 
NSLayoutAttributeCenterXWithinMargins
NSLayoutAttributeCenterYWithinMargins 

Upvotes: 6

Views: 3099

Answers (1)

Jano
Jano

Reputation: 63667

constraint-nouns

Painted that for a talk. It could be better. Here is the PSD.

Upvotes: 20

Related Questions