dismissViewControllerAnimated is called but ViewController is not dismissed

前端 未结 5 1643
旧巷少年郎
旧巷少年郎 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 07:05

    I had a problem in iOS5 where the standard completion callback was not allowing the view to completely dismiss (only the current pushed view of that modal)

    [controller dismissViewControllerAnimated:YES completion:^ {
         //
     }];
    

    Solution for iOS5 is to not have a callback:

    [controller dismissViewControllerAnimated:YES completion:nil];
    

提交回复
热议问题