iPhone NSTimer change repeat time
<p>I have a static method in which I setup NSTimer, but sometimes I need to change repeat time. How to do that if I work with static method? Should be something like this: </p>

<pre><code>+ (void)setupTimer:(BOOL)updateTime newTime:(int)time {
     NSTimer *timer;
     if (updateTime) {
         [timer invalidate];
         timer = nil;
     }
     timer = [NSTimer scheduledTimerWithTimeInterval:time 
                                              target:self 
                                            selector:@selector(myMethod:)
                                            userInfo:nil 
                                             repeats:YES];
}
</code></pre>

<p>But it's not working...and I know that I cannot invalidate in this case my timer...but also I cannot use NSTimer declared as member of class in static method...How to be ? thanks....</p>
