NSTimer stops during scrolling

后端 未结 1 2014
广开言路
广开言路 2021-01-03 10:46

During debugging my IOS project developed in XCode4, I initialize and run an NSTimer object. However, the timer stops as soon as I pre

相关标签:
1条回答
  • 2021-01-03 11:11

    Add this single line and try again please

    [[NSRunLoop mainRunLoop] addTimer:timer forMode:NSRunLoopCommonModes];
    
    0 讨论(0)
提交回复
热议问题