|
@@ -53,7 +53,7 @@ |
|
@@ -53,7 +53,7 @@ |
53
|
if (prev) {
|
53
|
if (prev) {
|
54
|
make.width.equalTo(prev);
|
54
|
make.width.equalTo(prev);
|
55
|
make.left.equalTo(prev.mas_right).offset(fixedSpacing);
|
55
|
make.left.equalTo(prev.mas_right).offset(fixedSpacing);
|
56
|
- if (i == (CGFloat)self.count - 1) {//last one
|
56
|
+ if (i == self.count - 1) {//last one
|
57
|
make.right.equalTo(tempSuperView).offset(-tailSpacing);
|
57
|
make.right.equalTo(tempSuperView).offset(-tailSpacing);
|
58
|
}
|
58
|
}
|
59
|
}
|
59
|
}
|
|
@@ -73,7 +73,7 @@ |
|
@@ -73,7 +73,7 @@ |
73
|
if (prev) {
|
73
|
if (prev) {
|
74
|
make.height.equalTo(prev);
|
74
|
make.height.equalTo(prev);
|
75
|
make.top.equalTo(prev.mas_bottom).offset(fixedSpacing);
|
75
|
make.top.equalTo(prev.mas_bottom).offset(fixedSpacing);
|
76
|
- if (i == (CGFloat)self.count - 1) {//last one
|
76
|
+ if (i == self.count - 1) {//last one
|
77
|
make.bottom.equalTo(tempSuperView).offset(-tailSpacing);
|
77
|
make.bottom.equalTo(tempSuperView).offset(-tailSpacing);
|
78
|
}
|
78
|
}
|
79
|
}
|
79
|
}
|
|
@@ -102,7 +102,7 @@ |
|
@@ -102,7 +102,7 @@ |
102
|
if (prev) {
|
102
|
if (prev) {
|
103
|
CGFloat offset = (1-(i/((CGFloat)self.count-1)))*(fixedItemLength+leadSpacing)-i*tailSpacing/(((CGFloat)self.count-1));
|
103
|
CGFloat offset = (1-(i/((CGFloat)self.count-1)))*(fixedItemLength+leadSpacing)-i*tailSpacing/(((CGFloat)self.count-1));
|
104
|
make.width.equalTo(@(fixedItemLength));
|
104
|
make.width.equalTo(@(fixedItemLength));
|
105
|
- if (i == (CGFloat)self.count - 1) {//last one
|
105
|
+ if (i == self.count - 1) {//last one
|
106
|
make.right.equalTo(tempSuperView).offset(-tailSpacing);
|
106
|
make.right.equalTo(tempSuperView).offset(-tailSpacing);
|
107
|
}
|
107
|
}
|
108
|
else {
|
108
|
else {
|
|
@@ -125,7 +125,7 @@ |
|
@@ -125,7 +125,7 @@ |
125
|
if (prev) {
|
125
|
if (prev) {
|
126
|
CGFloat offset = (1-(i/((CGFloat)self.count-1)))*(fixedItemLength+leadSpacing)-i*tailSpacing/(((CGFloat)self.count-1));
|
126
|
CGFloat offset = (1-(i/((CGFloat)self.count-1)))*(fixedItemLength+leadSpacing)-i*tailSpacing/(((CGFloat)self.count-1));
|
127
|
make.height.equalTo(@(fixedItemLength));
|
127
|
make.height.equalTo(@(fixedItemLength));
|
128
|
- if (i == (CGFloat)self.count - 1) {//last one
|
128
|
+ if (i == self.count - 1) {//last one
|
129
|
make.bottom.equalTo(tempSuperView).offset(-tailSpacing);
|
129
|
make.bottom.equalTo(tempSuperView).offset(-tailSpacing);
|
130
|
}
|
130
|
}
|
131
|
else {
|
131
|
else {
|