小编neK*_*uda的帖子

什么是错误:"NSInvalidArgumentException reason:Application尝试在自身上呈现模态视图控制器

当我尝试运行应用程序时,它会让我崩溃这是我收到的消息:

2014-07-25 14:40:28.116 X[13023:60b] (null)
2014-07-25 14:40:29.113 X[13023:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present modal view controller on itself. Presenting controller is <GKHostedAuthenticateViewController: 0x10d625f90>.'
*** First throw call stack:
(
    0   CoreFoundation                      0x00000001028a1495 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x00000001024e399e objc_exception_throw + 43
    2   UIKit                               0x0000000101190cdc -[UIViewController presentViewController:withTransition:completion:] + 4100
    3   CoreFoundation                      0x0000000102896f1c __invoking___ + 140
    4   CoreFoundation                      0x0000000102896dc4 -[NSInvocation invoke] + 308
    5   UIKit                               0x0000000101181abc -[_UIDelayedPresentationContext finishDelayedPresentation:] + 201
    6   GameCenterUI                        0x000000010c97f330 __41-[GKRemoteViewController …
Run Code Online (Sandbox Code Playgroud)

objective-c ios

16
推荐指数
2
解决办法
3万
查看次数

标签 统计

ios ×1

objective-c ×1