You would need to update constraints like:
-(void)updateConstraints{
// add your constraints if not already there
[super updateConstraints];
}
After adding your views to superview you need to call [self setNeedsUpdateConstraints]
to start using them. By doing so the rendering runtime will call updateConstraints
at the right time.