Black screen after presenting modal view controller in current context from UITabBarController

后端 未结 9 1699
终归单人心
终归单人心 2020-12-04 18:53

My root view controller is a UITabBarController. I\'m trying to present a modal view controller over one of the tab bar controller\'s view controllers, but still allow the

9条回答
  •  臣服心动
    2020-12-04 19:48

    I had the same issue and was able to solve it by setting self.definesPresentationContext = YES; on the presenting view controller before presenting the modal VC. You can also set this in a storyboard, the checkbox is called "Defines Context" in Interface Builder.

提交回复
热议问题