嗨,我正在使用此代码获取上一个视图
NSTimer *theTimer = [NSTimer scheduledTimerWithTimeInterval:3.0
target:self
selector:@selector(pictureTimerFired:)
userInfo:nil
repeats:NO];
- (void) pictureTimerFired:(NSTimer*)theTimer {
NSLog(@"Timer fired, closing picture");
}
但发生的事情是它直接退出应用程序并显示图标我该如何解决这个问题
答案 0 :(得分:0)
从函数名中删除逗号,因为如果你没有向timer传递参数,则不需要逗号,如果你传递参数,那么在函数中使用uersInfo