View unusable after dismissViewControllerAnimated:completion:

后端 未结 4 1649
孤城傲影
孤城傲影 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 08:10

    A different solution - I found if presenting from a view controller within a container view (as opposed to a subview), if you switch the segue from Modal to Show, your constraints will stay the same on your initial view but still animate as if you presented modally and still be able to call dismissViewController correctly.

提交回复
热议问题