Slide show effect in iphone
<p>I want to create on slide show in my iphone application which open if the user don't touch the screen for 30 second , for that i have made on method which reset the time when user touch the screen . </p>

<p>I have used nstimer class to handle timer event .</p>

<p>my problem is that even if invalidating the timer the event has been fire after the time interval my reset timer method is as per below </p>

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

    if(timerForScreenSaver != nil)
    {   
        timerForScreenSaver = nil;
        [timerForScreenSaver invalidate];
        NSLog(@"timer is invalidate %@ ",timerForScreenSaver);
    }

    timerForScreenSaver = [NSTimer scheduledTimerWithTimeInterval:15.0 target:self selector:@selector(showScreenSaver) userInfo:nil repeats:NO];

    NSLog(@"timer is set");
}
</code></pre>

<p>can any one help me to reset the timer .</p>

<p>Thanks and Regard<br>
&nbsp;
&nbsp;
&nbsp;Kunal Patel</p>
