View unusable after dismissViewControllerAnimated:completion:

后端 未结 4 1680
孤城傲影
孤城傲影 2021-01-05 07:08

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

4条回答
  •  情书的邮戳
    2021-01-05 07:59

    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

提交回复
热议问题