|
|
|
|
|
|
|
|
[[self stackView] addConstraint:globalC]; |
|
|
[[self stackView] addConstraint:globalC]; |
|
|
}*/ |
|
|
}*/ |
|
|
|
|
|
|
|
|
//[battery.widthAnchor constraintEqualToConstant:(battery.number * 85)].active = YES; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
battery.heightConstraint.active = NO; |
|
|
|
|
|
battery.heightConstraint = [battery.heightAnchor constraintEqualToConstant:(battery.number * 85)]; |
|
|
|
|
|
battery.heightConstraint.active = YES; |
|
|
|
|
|
|
|
|
/*battery.frame = CGRectMake( |
|
|
/*battery.frame = CGRectMake( |
|
|
originalBattery.origin.x, |
|
|
originalBattery.origin.x, |
|
|
originalBattery.origin.y, |
|
|
originalBattery.origin.y, |