创建定时器:

NSTimer *timer=

[NSTimerscheduledTimerWithTimeInterval:5

                                           target:self

                                         selector:@selector(zongXueTiaoMove)

                                         userInfo:nil

                                          repeats:YES];

上面的zongXueTiaoMove是一个方法,将5秒钟被调用一次

取消定时器:

[timer invalidate]

posted on 2013-03-20 16:40  aparche  阅读(197)  评论(0编辑  收藏  举报