在NSTimer代码后面加上以下代码,这样滚动scroll的时候就不会暂停了。
NSRunLoop *t = [NSRunLoop currentRunLoop];
[t addTimer: timer forMode:forMode:NSRunLoopCommonModes]
其中timer是自定义的NSTimer对象。
转载于:https://www.cnblogs.com/z-j-w/p/5148951.html
在NSTimer代码后面加上以下代码,这样滚动scroll的时候就不会暂停了。
NSRunLoop *t = [NSRunLoop currentRunLoop];
[t addTimer: timer forMode:forMode:NSRunLoopCommonModes]
其中timer是自定义的NSTimer对象。
转载于:https://www.cnblogs.com/z-j-w/p/5148951.html