I tried several solutions found on other posts, but still experiencing problems with auto-resolution of subviews while rotating the device. My Layout (IB) has three views and applies only to the size of the current view. If then, after turning the device, the view is displayed, has not been changed and remains in the previous measurements. I install autoresize subviews and its mask ... What am I doing wrong or missing? any help would be appreciated, thanks!
- (void)viewDidLoad { [super viewDidLoad]; [self.view setAutoresizesSubviews:YES]; [self.view setAutoresizingMask:UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight]; [vistaSocial setAutoresizesSubviews:YES]; [vistaSocial setAutoresizingMask:UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight]; [vistaB setAutoresizesSubviews:YES]; [vistaB setAutoresizingMask:UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight];
Jaume source share