I\'m migrating older code that used NIBs to use manual view creation (loadView) and Auto Layout. The root view controller is a container VC
I have also the same problem and when i tried this navigation controller it was working fine but not with present viewcontroller. Use this below view controller method along with translatesAutoresizingMaskIntoConstraints to solve this problem.
-(void) viewWillLayoutSubviews
{
[super viewWillLayoutSubviews];
self.view.translatesAutoresizingMaskIntoConstraints = NO;
}
Please let me now it you have any concern about it. Thanks