|
|
|
|
|
|
|
|
battery.heightConstraint.active = YES; |
|
|
battery.heightConstraint.active = YES; |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
int height = ((battery.number * (bannerHeight + spacing)); //big brain math |
|
|
|
|
|
|
|
|
int height = (battery.number * (bannerHeight + spacing)); //big brain math |
|
|
battery.heightConstraint.active = NO; //deactivation |
|
|
battery.heightConstraint.active = NO; //deactivation |
|
|
battery.heightConstraint.constant = height; |
|
|
battery.heightConstraint.constant = height; |
|
|
battery.heightConstraint.active = YES; //forcing reactivation |
|
|
battery.heightConstraint.active = YES; //forcing reactivation |