I created a UIView programatically and add NSLayoutConstraint to it and it works and then add it as a subView of view controller\'s view. Right now I need to remove this vie
When you create constraints assign it to variables
@property (nonatomic, strong)NSLayoutConstraint *viewConstraintTop;
self.viewConstraintTop = [Your Constraint];
When you want to remove it from the superview remove the constraints
[self.viewConstraintTop autoRemove];
Remove your view and again while adding assign the constraint as
self.viewConstraintTop = [Your Constraint];