2014-10-02 12 views
6

Ich finde die Dokumentation ein wenig spärlich. Hier ist ein BeispielNSLayoutAttribute erklärt

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

Insbesondere möchte ich all diese erklärt

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

Antwort

20

constraint-nouns

Gemalt, dass für ein Gespräch. Es könnte besser sein. Hier ist die PSD.

+0

LOL! Ich liebe, dass du diesen bereits vorbereitet hast. ABER! Dieses Beispiel ist ein chinesisches Zeichen. Trailing und Leading sollten umgekehrt sein. Außerdem haben Sie oben und unten falsch beschriftet. Links und rechts fehlen ebenfalls. – Fogmeister

+1

Ich habe oben und unten umbenannt. Hat die chinesische Regierung nicht vor Jahrzehnten, von oben nach unten, von links nach rechts mandatiert? (Ich bin ehrlich gesagt nicht sicher) – Jano

+0

Ah, Sie können dann in der Richtung richtig sein. Ich habe einfach immer angenommen, dass es eine RTL-Sprache ist. – Fogmeister