iOS开发之定时器和tableview滑动阻塞问题

NSTimer *timer = [[NSTimer alloc]initWithFireDate:[NSDate distantPast] interval:1 target:self selector:@selector(timerAction:) userInfo:nil repeats:YES];

[[NSRunLoop currentRunLoop]addTimer:timer forMode:NSDefaultRunLoopMode];

 

posted @ 2020-11-09 11:04  kawerd  阅读(388)  评论(0编辑  收藏  举报