0

I create a NSTimer in ASCellNode, when ASTableView's UIViewController pop, but the timer not be released.

_timer = [NSTimer scheduledTimerWithTimeInterval:3.0 target:self selector:@selector(autoScrollBanner) userInfo:nil repeats:YES];
[[NSRunLoop mainRunLoop] addTimer:_timer forMode:NSRunLoopCommonModes];

how can i stop this timer? thx in advance!

Atanu Mondal
  • 1,714
  • 1
  • 24
  • 30
maple
  • 101
  • 1
  • 13

1 Answers1

0

Try overwrite next methods didExitVisibleState, didExitDisplayState,didExitHierarchy in ASCellNode inherited object and insert cancel fired timer.

Bimawa
  • 3,535
  • 2
  • 25
  • 45