self.heightConstraint.active = YES; | self.heightConstraint.active = YES; | ||||
} else { | } else { | ||||
int height = (self.number * (bannerHeight + spacing)) - spacing; | |||||
int height = (self.number * (bannerHeight + spacing)); | |||||
self.heightConstraint.constant = height; | self.heightConstraint.constant = height; | ||||
UIStackView *s = (UIStackView *)(self.superview); | UIStackView *s = (UIStackView *)(self.superview); |