, MaxLayoutWidth (, xib ..), , .
:
IB iPhone :

, :
- (void)updateLabelPreferredMaxLayoutWidthToCurrentWidth:(UILabel *)label
{
label.preferredMaxLayoutWidth =[label bounds].size.width;
}
-(void)updateLabels
{
[self updateLabelPreferredMaxLayoutWidthToCurrentWidth:self.label1];
[self updateLabelPreferredMaxLayoutWidthToCurrentWidth:self.label2];
[self updateLabelPreferredMaxLayoutWidthToCurrentWidth:self.label3];
}
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
[super willAnimateRotationToInterfaceOrientation:toInterfaceOrientation duration:duration];
[self updateLabels];
}
MaxLayoutWidth willAnimateRotationToInterfaceOrientation, . :

, updateLabels viewDidAppear :
-(void)viewDidAppear:(BOOL)animated
{
[self updateLabels];
}
, xib iPhone, . , , .
iPad xib viewDidAppear:

, .