您的位置:首页 > 产品设计 > UI/UE

在确认UIAlertView后,调用presentViewController无效的问题

2014-11-15 16:32 1006 查看
环境:Xcode6.1,测试机IOS7.1.

在UIAlertView Delegate的alertView:clickedButtonAtIndex:中,调用presentViewController跳往另一视图时,会出现如下错误,导致跳转失败:

Attempt to present <...ViewController: 0x181e5c00> on <_UIModalItemAppViewController: 0x18153a90> which is already presenting <_UIModalItemsPresentingViewController: 0x181562e0>

解决方案:

在alertView:didDismissWithButtonIndex:中调用跳转代码
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: