4 ms·
Or use NSLayoutAnchor, which was added in iOS 9 and OS X 10.10; [box.widthAnchor constraintEqualToConstant:50].active = YES; [box.centerAnchor constran
by thought_alarm 11y ago
Or use NSLayoutAnchor, which was added in iOS 9 and OS X 10.10;
[box.widthAnchor constraintEqualToConstant:50].active = YES;
[box.centerAnchor constrantEqualToAnchor:self.view.centerAnchor].active = YES;