IOS 定时器

时间:2014-09-25 22:54:49   收藏:0   阅读:344

NSTimer *myTimer = [NSTimer scheduledTimerWithTimeInterval:1.5 target:self selector:@selector(scrollTimer) userInfo:nil repeats:NO];

 

//关闭定时器
[myTimer setFireDate:[NSDate distantFuture]];

 

//开启定时器
[myTimer setFireDate:[NSDate distantPast]];

原文:http://www.cnblogs.com/leiqun123/p/3993847.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!