iPhone - NSTimer not repeating after fire
问题 I am creating and firing a NSTimer with: ncTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(handleTimer:) userInfo:nil repeats:YES]; [ncTimer fire]; AND - (void)handleTimer:(NSTimer *)chkTimer { // do stuff } I am retaining my timer with: @property (nonatomic, retain) NSTimer *ncTimer; For some reason the timer is not repeating. It is firing once only and than never again. 回答1: You can't just assign to the timer that you have put as a property in your header.