addTimer: causing SIGABRT?
In xcode
timer = [NSTimer timerWithTimeInterval:auto_panic_upadte_secs
invocation:panicPendingTickInvoc开发者_如何学Cation repeats:FALSE];
[[NSRunLoop currentRunLoop] addTimer:timer forMode:NSDefaultRunLoopMode];
It gets past these lines of code, But as soon as I run it just SIGABRTs without/before my invocation happening.
Any idea to do this?
You may need to retain the arguments to your NSInvocation with the method
[panicPendingTickInvocation retainArguments];
To stop and autoreleased arguments from being released before you timer firers.
精彩评论