NSTimer-动态修改Interval的值

NSTimer使用例子:
    NSTimer *showTimer = [NSTimer scheduledTimerWithTimeInterval:1
                                                           target:self
                                                         selector:@selector(hzlight:)
                                                         userInfo:nil                                                     repeats:YES];
    [showTimer fire];

但是如果要不停的更改Interval值的时候,会出现很多NSTimer并发,如何修改一个timer来响应不同变化Interval值的需求。方法有两种:

猜你喜欢

转载自longquan.iteye.com/blog/1860232