首页 > 其他 > 详细

定时器

时间:2015-10-21 22:23:23      阅读:333      评论:0      收藏:0      [点我收藏+]

    //TimeInterval  时间间隔

    //target        目标

    //selector      target 要执行 selector 方法

    //userInfo      用户信息

    //repeats       是否反复定时执行

NSTimer *timer  = [NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(changeColor) userInfo:nil repeats:YES];

//停止定时器

[_timer setFireDate:[NSDate distantFuture]];

定时器

原文:http://www.cnblogs.com/tapple/p/4899067.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!