Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSLayoutAttribute's explained

Tags:

ios

autolayout

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 
like image 584
hfossli Avatar asked Oct 02 '14 09:10

hfossli


1 Answers

constraint-nouns

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

like image 65
Jano Avatar answered Sep 29 '22 03:09

Jano