(转)在新线程中使用NSTimer
摘要:
(转)在新线程中使用NSTimer转自:NStimer 在滚动ScrollView的时候停止,在新线程中使用NSTimer 1 方法一: 2 3 -(void) viewDidLoad{ 4 [self performSelectorInBackground:@selector(call1) withObject:nil]; 5 } 6 7 -(void) call1{ 8 timer1 = [NSTimer scheduledTimerWithTimeInterval:3.0 target:self selector:@selector(doSomething) userInfo:ni... 阅读全文
posted @ 2012-07-31 16:18 east520 阅读(175) 评论(0) 推荐(0)
浙公网安备 33010602011771号