当一个控制器中有两个scrollview,可以在不用多线程的条件下同时执行

时间:2015-05-16 23:28:14   收藏:0   阅读:536

当一个控制器中有两个scrollview,可以在不用多线程的条件下同时执行

self.timer = [NSTimer scheduledTimerWithTimeInterval:3.0 target:self selector:@selector(nextImage) userInfo:nil repeats:YES];

    [[NSRunLoop currentRunLoopaddTimer:self.timer forMode:NSRunLoopCommonModes];

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!