NSTimer stopping in run time?
<p>how can i stop NSTimer in runTime?</p>

<p>I am using the following code .but NSTimer runs again and again.(i want to repeat NStimer, i want to stop in runtime )</p>

<pre><code> - (void)TimerCallback
   {

  .....
  [self.tim invalidate];
      self.tim = nil;

}


-(void)timerStart
{


    self.tim = [NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(TimerCallback) userInfo:nil repeats:YES];

}
</code></pre>
