|
|
|
|
|
|
|
|
self.stack.heightConstraint.active = YES; |
|
|
self.stack.heightConstraint.active = YES; |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
int height = (self.number * (bannerHeight + spacing)); |
|
|
|
|
|
if([self.superview.subviews count]>1) { |
|
|
|
|
|
|
|
|
int height = (self.number * (bannerHeight + spacing)); |
|
|
|
|
|
if(kaiAlign==0 && [self.superview.subviews count]>1) { |
|
|
height = (self.number * (bannerHeight + spacing)) - spacing; |
|
|
height = (self.number * (bannerHeight + spacing)) - spacing; |
|
|
|
|
|
} else { |
|
|
|
|
|
height = bannerHeight; |
|
|
} |
|
|
} |
|
|
self.heightConstraint.constant = height; |
|
|
self.heightConstraint.constant = height; |
|
|
self.stack.heightConstraint.constant = height; |
|
|
self.stack.heightConstraint.constant = height; |