You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: TableViewCellWithAutoLayout/TableViewController/RJTableViewCell.m
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,9 @@ - (void)updateConstraints
79
79
// See here for further discussion: https://github.com/Alex311/TableCellWithAutoLayout/commit/bde387b27e33605eeac3465475d2f2ff9775f163#commitcomment-4633188
ALEdgeLeading,// the leading edge of the view (left edge for left-to-right languages like English, right edge for right-to-left languages like Arabic)
38
-
ALEdgeTrailing // the trailing edge of the view (right edge for left-to-right languages like English, left edge for right-to-left languages like Arabic)
35
+
ALEdgeLeft = NSLayoutAttributeLeft, // the left edge of the view
36
+
ALEdgeRight = NSLayoutAttributeRight, // the right edge of the view
37
+
ALEdgeTop = NSLayoutAttributeTop, // the top edge of the view
38
+
ALEdgeBottom = NSLayoutAttributeBottom, // the bottom edge of the view
39
+
ALEdgeLeading = NSLayoutAttributeLeading, // the leading edge of the view (left edge for left-to-right languages like English, right edge for right-to-left languages like Arabic)
40
+
ALEdgeTrailing = NSLayoutAttributeTrailing // the trailing edge of the view (right edge for left-to-right languages like English, left edge for right-to-left languages like Arabic)
39
41
};
40
42
41
-
typedefNS_ENUM(NSInteger, ALAxis) {
42
-
ALAxisHorizontal = 0, // a horizontal line through the center of the view
43
-
ALAxisVertical, // a vertical line through the center of the view
44
-
ALAxisBaseline // a horizontal line at the text baseline (not applicable to all views)
43
+
typedefNS_ENUM(NSInteger, ALDimension) {
44
+
ALDimensionWidth = NSLayoutAttributeWidth, // the width of the view
45
+
ALDimensionHeight = NSLayoutAttributeHeight // the height of the view
45
46
};
46
47
47
-
typedefNS_ENUM(NSInteger, ALDimension) {
48
-
ALDimensionWidth = 0, // the width of the view
49
-
ALDimensionHeight // the height of the view
48
+
typedefNS_ENUM(NSInteger, ALAxis) {
49
+
ALAxisVertical = NSLayoutAttributeCenterX, // a vertical line through the center of the view
50
+
ALAxisHorizontal = NSLayoutAttributeCenterY, // a horizontal line through the center of the view
51
+
ALAxisBaseline = NSLayoutAttributeBaseline // a horizontal line at the text baseline (not applicable to all views)
50
52
};
51
53
52
54
typedefvoid(^ALConstraintsBlock)(void); // a block of method calls to the UIView+AutoLayout category API
@@ -69,13 +71,15 @@ typedef void(^ALConstraintsBlock)(void); // a block of method calls to the UI
69
71
- (instancetype)initForAutoLayout;
70
72
71
73
72
-
#pragma markAuto Layout Convenience Methods
74
+
#pragma markSet Constraint Priority
73
75
74
76
/** Sets the constraint priority to the given value for all constraints created using the UIView+AutoLayout category API within the given constraints block.
75
77
NOTE: This method will have no effect (and will NOT set the priority) on constraints created or added using the SDK directly within the block! */
/** Constrains an attribute (any ALEdge, ALAxis, or ALDimension) of the view to a given attribute of another view with an offset as a maximum or minimum. */
/** Constrains an attribute (any ALEdge, ALAxis, or ALDimension) of the view to a given attribute of another view with a multiplier as a maximum or minimum. */
/** Distributes the views in this array equally along the selected axis. Views will be the same size (variable) in the dimension along the axis and will have spacing (fixed) between them. */
261
+
#pragma mark Distribute Multiple Views
262
+
263
+
/** Distributes the views in this array equally along the selected axis in their superview. Views will be the same size (variable) in the dimension along the axis and will have spacing (fixed) between them. */
/** Distributes the views in this array equally along the selected axis. Views will be the same size (fixed) in the dimension along the axis and will have spacing (variable) between them. */
266
+
/** Distributes the views in this array equally along the selected axis in their superview. Views will be the same size (fixed) in the dimension along the axis and will have spacing (variable) between them. */
0 commit comments