Constraints are like any other object, if you want to change them later make a property.
@property (nonatomic, strong) NSLayoutConstraint *centerConstraint;
Then set it to a particular constraint, add it to the view and you can remove and re-add it later.