In UIView.h you can read the following:
- (BOOL)translatesAutoresizingMaskIntoConstraints NS_AVAILABLE_IOS(6_0);
This means that when creating UIViewfrom xib, translatesAutoresizingMaskIntoConstraintsa value must be set NO.
However, when I create an xib view form using [[UINib nibWithNibName:nibName bundle:[NSBundle mainBundle]] instantiateWithOwner:self options:nil], is translatesAutoresizingMaskIntoConstraintsset to YES.
Any idea why?
source
share