环境: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:中调用跳转代码