2011年9月29日 星期四

NSTimer change repeat time


step1 
static NSTimer *timer;
step2
[timer invalidate];
step3
timer = [NSTimer scheduledTimerWithTimeInterval:newtime 
                                              target:self 
                                            selector:@selector(myMethod:)
                                            userInfo:nil 
                                             repeats:YES];

沒有留言:

張貼留言