且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

dismissViewControllerAnimated在块中不起作用

更新时间:2023-02-06 13:11:07

如果有人遇到同样的问题。我推了 UIViewController ,我没有用 presentViewController:animated:completion:来呈现它。这就是为什么应该使用 [self.navigationController popViewControllerAnimated:YES];

In case someone is having the same issue. I pushed the UIViewController, I didn't present it with presentViewController:animated:completion:. That's why [self.navigationController popViewControllerAnimated:YES]; should be used instead.

奇怪的是 [self dismissViewControllerAnimated:YES completion:nil]; 在街区之外工作并且没有在里面,我对此没有解释......

The strange thing is that [self dismissViewControllerAnimated:YES completion:nil]; worked outside of the block and didn't inside, I have no explanation for this...