dismissViewControllerAnimated does not work within a block

前端 未结 4 748
野趣味
野趣味 2021-01-02 04:36

I try to close a UIViewController after an UIAlertController has been shown.

This is my code:

UIAlertController *alertContr         


        
4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-02 04:51

    Just use [super.navigationController popViewControllerAnimated:YES];

提交回复
热议问题