[box.widthAnchor constraintEqualToConstant:50].active = YES; [box.centerAnchor constrantEqualToAnchor:self.view.centerAnchor].active = YES;