4

During debugging my IOS project developed in XCode4, I initialize and run an NSTimer object. However, the timer stops as soon as I press the scroll view and it continues to run after I release the scroll.

Is there a configuration for NSTimer such that timer is not blocked during scrolling?

Thanks in advance.

fatihk
  • 7,789
  • 1
  • 26
  • 48

1 Answers1

14

Add this single line and try again please

[[NSRunLoop mainRunLoop] addTimer:timer forMode:NSRunLoopCommonModes];
Yucel Bayram
  • 1,653
  • 2
  • 22
  • 41