Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在调试我IOS开发的项目期间XCode4,我初始化并运行了一个NSTimer对象。但是,一旦我按下滚动视图,计时器就会停止,并在我释放滚动后继续运行。
IOS
XCode4
NSTimer
是否有 NSTimer 的配置,以便在滚动期间不会阻止计时器?
提前致谢。
请添加此单行并重试
[[NSRunLoop mainRunLoop] addTimer:timer forMode:NSRunLoopCommonModes];