NSLayoutAttribute explained

I find the documentation a bit rare. Here is an example

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

In particular, I want all these explanations

 NSLayoutAttributeLeft NSLayoutAttributeRight NSLayoutAttributeTop NSLayoutAttributeBottom NSLayoutAttributeLeading NSLayoutAttributeTrailing NSLayoutAttributeWidth NSLayoutAttributeHeight NSLayoutAttributeCenterX NSLayoutAttributeCenterY NSLayoutAttributeBaseline NSLayoutAttributeLastBaseline NSLayoutAttributeFirstBaseline NSLayoutAttributeLeftMargin NSLayoutAttributeRightMargin NSLayoutAttributeTopMargin NSLayoutAttributeBottomMargin NSLayoutAttributeLeadingMargin NSLayoutAttributeTrailingMargin NSLayoutAttributeCenterXWithinMargins NSLayoutAttributeCenterYWithinMargins 
+6
source share
1 answer

constraint-nouns

Stained it for conversation. It could have been better. Here is the PSD .

+20
source

Source: https://habr.com/ru/post/976137/


All Articles