Error when dismissing view controller

前端 未结 6 1719
时光取名叫无心
时光取名叫无心 2021-02-07 07:52

Getting an error when dismissing a view controller, not seen anything like it before, and not much about it on the internet.

heres the error: * Assertion failur

6条回答
  •  天涯浪人
    2021-02-07 07:56

    Make sure to dismiss the view controller from the presenting view.

    https://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/ModalViewControllers/ModalViewControllers.html

    When it comes time to dismiss a presented view controller, the preferred approach is to let the presenting view controller dismiss it. In other words, whenever possible, the same view controller that presented the view controller should also take responsibility for dismissing it.

提交回复
热议问题