Sportica   Sportica

objective-c NSTimer 定时器

-(void)initTimer
{
    //时间间隔
    NSTimeInterval timeInterval =3.0 ;
    //定时器    repeats 表示是否需要重复,NO为只重复一次
    NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval:timeInterval target:self selector:@selector(mobileAnimation) userInfo:nil repeats:YES];
}
posted @ 2012-07-12 18:20  qingjoin  阅读(1931)  评论(0编辑  收藏  举报
  Sportica