dismissViewControllerAnimated is called but ViewController is not dismissed

前端 未结 5 1653
旧巷少年郎
旧巷少年郎 2021-02-02 06:02

I am having a problems with the dismissViewControllerAnimated method not closing down the view.

What is happening in the app here is:

  • Cell in
5条回答
  •  醉梦人生
    2021-02-02 06:57

    The answer is in this page: dismissviewcontrolleranimated-vs-popviewcontrolleranimated

    dismissViewController is used when you do not have a navigationcontroller. Most probably you are using a navigation controller, then use self.navigationController popViewController instead.

    Also take note of lemax his remark: use NULL, not nill for the completionhandler

提交回复
热议问题