NSTimer
[NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(timerFireMethod:) userInfo:nil repeats:YES];//使用timer定时,每秒触发一次,然后就是写selector了。
- (void)timerFireMethod:(NSTimer*)theTimer
- (void)timerFireMethod:(NSTimer*)theTimer
{}