标签:presentedviewcontrol nsinvalidargumentexc tried to present active controller
Terminating app due to uncaught exception ‘NSInvalidArgumentException‘, reason: ‘Application tried to present modally an active controller <TabbarViewController: 0x1765dbe0>.‘
判断controller是不是有presentedViewController,没有的话才可以present
if ([UIApplication sharedApplication].delegate.window.rootViewController.presentedViewController == nil) { [[UIApplication sharedApplication].delegate.window.rootViewController presentViewController:self.gesturePasswordController animated:YES completion:^{ }]; }
【问题处理】Application tried to present modally an active controller
标签:presentedviewcontrol nsinvalidargumentexc tried to present active controller
原文地址:http://blog.csdn.net/u011439689/article/details/45193057