How to stop a timer in iphone?
<p>I have a timer which i am using in my application..</p>

<p>In my application ,I have two views. On the first view i have added a button and a progress bar and i have used a timer for progress bar.</p>

<p>User can move to next view either on clicking the button or wait for progress bar to complete..</p>

<p>If the progress bar is completed the user will be drawn to next view..</p>

<p>Here, is my question How to stop timer which have no name like...</p>

<pre><code>[NSTimer scheduledTimerWithTimeInterval:0.0005 target:self selector:@selector(onTimer) userInfo:nil repeats:YES];
</code></pre>

<p>Because of not stopping the timer in the first view if the user waits for progress bar to complete,the things in the next view will not work...</p>
