美文网首页
presentviewcontroller上面显示UIAlert

presentviewcontroller上面显示UIAlert

作者: Suffic | 来源:发表于2018-01-16 18:40 被阅读0次

调用[mAppDelegate.rootNavigationController presentViewController:vc animated:YES completion:nil];

显示一个模态界面后,再次调用[mAppDelegate.rootNavigationController presentViewController:vc animated:YES completion:nil];显示UIAlertController,将不会显示出来。

解决方法:[vc presentViewController:ac animated:YES completion:nil]

这样就可以在模态界面vc上面显示UIAlertController

相关文章

网友评论

      本文标题:presentviewcontroller上面显示UIAlert

      本文链接:https://www.haomeiwen.com/subject/aqleoxtx.html