I have a UIViewController instance named: MainController. within this MainController.view I have another view (with class named SlideViewContent) who is have a nib instance:
NSArray *nibContents = [[NSBundle mainBundle] loadNibNamed:@"SlideMenuView"
owner:self
options:nil];
self.bottomSlideMenu = [nibContents objectAtIndex:0];
self.bottomSlideMenu.frame = CGRectMake(0,0,screenWidth,screenHeight);
self.bottomSlideMenu.bounds = CGRectMake(0,0,screenWidth,screenHeight);
All Autolayout constraints has been added to the nibFile and works fine with no warnings. I would like to apply autolayout on this and call these methods to refresh UI with the good screen size:
[self setNeedsDisplay] or [self setNeedsLayout];
But nothing would work!