NSLayoutAttribute 屬性參數(shù)解釋
typedef?NS_ENUM(NSInteger, NSLayoutRelation) {
????NSLayoutRelationLessThanOrEqual = -1,??????????//小于等于
????NSLayoutRelationEqual = 0,?????????????????????//等于
????NSLayoutRelationGreaterThanOrEqual = 1,????????//大于等于
};
typedef?NS_ENUM(NSInteger, NSLayoutAttribute) {
????NSLayoutAttributeLeft = 1,?????????????????????//左側
????NSLayoutAttributeRight,????????????????????????//右側
????NSLayoutAttributeTop,??????????????????????????//上方
????NSLayoutAttributeBottom,???????????????????????//下方
????NSLayoutAttributeLeading,??????????????????????//首部
????NSLayoutAttributeTrailing,?????????????????????//尾部
????NSLayoutAttributeWidth,????????????????????????//寬度
????NSLayoutAttributeHeight,???????????????????????//高度
????NSLayoutAttributeCenterX,??????????????????????//X軸中心
????NSLayoutAttributeCenterY,??????????????????????//Y軸中心
????NSLayoutAttributeBaseline,?????????????????????//文本底標線
????NSLayoutAttributeNotAnAttribute = 0????????????//沒有屬性
};