I am trying to use autolayout for a uitableviewcell subclass I am creating and I would appreciate some advice on what method to put the layout constraint creation code. I have
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.