在xcode中
timer = [NSTimer timerWithTimeInterval:auto_panic_upadte_secs
invocation:panicPendingTickInvocation repeats:FALSE];
[[NSRunLoop currentRunLoop] addTimer:timer forMode:NSDefaultRunLoopMode];它跳过了这些代码行,但只要我运行它,就会在没有/在我的调用发生之前进行SIGABRT。
你有这样做的想法吗?
发布于 2011-08-02 21:19:09
您可能需要使用方法保留NSInvocation的参数
[panicPendingTickInvocation retainArguments];在计时器触发器之前停止并自动释放参数。
https://stackoverflow.com/questions/6911637
复制相似问题