Possible Duplicate:
UIScrollView pauses NSTimer until scrolling finishes
I am having a bit of trouble figuring out why the NSTimer stops as soon as I scroll in the UIWebView. Please take a look at the following code (I know this isn't a homework site, but I honestly am stuck):
- (void)viewDidLoad {
[super viewDidLoad];
NSString *address = @"http://en.m.wikipedia.org/wiki/";
NSURL *url = [NSURL URLWithString:address];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[wiki loadRequest:request];
time = 0;
countValue = 0;
timer = [NSTimer scheduledTimerWithTimeInterval: 0.1 target: self selector: @selector(updateTimer) userInfo: nil repeats: YES];
timeRand = 0;
countValueRand = 1;
randomTimer = [NSTimer scheduledTimerWithTimeInterval: 0.1 target: self selector: @selector(updateRandomTimer) userInfo: nil repeats: YES];
[self generateWordsArray];
}