ios定時器使用的幾點優化

1. 將定時器添加到runloop中,通常在viewWillAppear方法中添加 timer = [NSTimer scheduledTimerWithTimeInterval:3.0 target:self selector:@selector(dealTimer) userInfo:nil repeats:YES];app         [[NSRunLoop currentRunLoop
相關文章
相關標籤/搜索