避免滑动tableView时对NSTimer的干扰

Posted on 2013-11-15 14:17  逍_遥  阅读(203)  评论(0)    收藏  举报
NSTimer *timer = [[NSTimer alloc]init];
    timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(timeLabelDisplay) userInfo:nil repeats:YES];
    NSRunLoop *main = [NSRunLoop currentRunLoop];
    [main addTimer:timer forMode:NSRunLoopCommonModes];

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3