Objective c iPhone模拟器因GDP错误而崩溃,并发出警告:

Objective c iPhone模拟器因GDP错误而崩溃,并发出警告:,objective-c,ios-simulator,Objective C,Ios Simulator,警告:“RootViewController”可能不响应“-peformSelector:withObject:afterDelay:” 调试器控制台中的崩溃: {[Session started at 2011-04-30 21:57:58 +0800.] 2011-04-30 21:57:59.414 Gravity Man[57133:207] -[RootViewController peformSelector:withObject:afterDelay:]: unrec

警告:“RootViewController”可能不响应“-peformSelector:withObject:afterDelay:”

调试器控制台中的崩溃:

    {[Session started at  
2011-04-30 21:57:58 +0800.] 
2011-04-30 21:57:59.414 Gravity Man[57133:207] -[RootViewController peformSelector:withObject:afterDelay:]: unrecognized selector sent to instance 0x4e0d740 
2011-04-30 21:57:59.417 Gravity Man[57133:207] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RootViewController peformSelector:withObject:afterDelay:]: unrecognized selector sent to instance 0x4e0d740' * 
Call stack at first throw: ( 
    0 CoreFoundation 0x00f0cbe9     exceptionPreprocess + 185 
    1 libobjc.A.dylib 0x010615c2    objc_exception_throw + 47 
    2 CoreFoundation 0x00f0e6fb     -[NSObject(NSObject) doesNotRecognizeSelector:] + 187 
    3 CoreFoundation 0x00e7e366     __forwarding + 966 
    4 CoreFoundation 0x00e7df22     _CF_forwarding_prep_0 + 50 
    5 Gravity Man 0x00002c8d    -[RootViewController viewWillAppear:] + 471 
    6 UIKit 0x00374c9a      -[UINavigationController _startTransition:fromViewController:toViewController:] + 858 
    7 UIKit 0x0036f606      -[UINavigationController _startDeferredTransitionIfNeeded] + 266 
    8 UIKit 0x00487e01      -[UILayoutContainerView layoutSubviews] + 226 
    9 QuartzCore 0x00cab451     -[CALayer layoutSublayers] + 181 
    10 QuartzCore 0x00cab17c    CALayerLayoutIfNeeded + 220 
    11 QuartzCore 0x00ca437c    _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 310 
    12 QuartzCore 0x00ca40d0    _ZN2CA11Transaction6commitEv + 292 
    13 UIKit 0x002bb19f         -[UIApplication _reportAppLaunchFinished] + 39 
    14 UIKit 0x002bb659         -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 690 
    15 UIKit 0x002c5db2         -[UIApplication handleEvent:withNewEvent:] + 1533 
    16 UIKit 0x002be202         -[UIApplication sendEvent:] + 71 
    17 UIKit 0x002c3732         _UIApplicationHandleEvent + 7576 
    18 GraphicsServices         0x01842a36 PurpleEventCallback + 1550 
    19 CoreFoundation 0x00eee064    CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 52 
    20 CoreFoundation 0x00e4e6f7    __CFRunLoopDoSource1 + 215 
    21 CoreFoundation 0x00e4b983    __CFRunLoopRun + 979 
    22 CoreFoundation 0x00e4b240    CFRunLoopRunSpecific + 208 
    23 CoreFoundation 0x00e4b161    CFRunLoopRunInMode + 97 
    24 UIKit 0x002bafa8         -[UIApplication _run] + 636 25 UIKit 0x002c742e UIApplicationMain + 1160 26 Gravity Man 0x0000282a main + 84 
    27 Gravity Man 0x000027cd   start + 53 
) terminate called after throwing an instance of 'NSException'

}
.h:

.m:


谢谢你,请帮忙

将其复制到.h文件:

-(void)popView:(UIView*)view; 
这应该可以解决问题。

改变

[self peformSelector:@selector(popView:) withObject:settingsButton afterDelay:0.95];`
       ^^
进入

IE在peformSelector之间添加r

-(void)popView:(UIView*)view; 
[self peformSelector:@selector(popView:) withObject:settingsButton afterDelay:0.95];`
       ^^
[self performSelector:@selector(popView:) withObject:settingsButton afterDelay:0.95];`
       ^^^