NSTimer操作

NSTimer *tm = [NSTimer timerWithTimeInterval:0.5f target:self

                                        selector:@selector(verifyConverting:)

                                        userInfo:nil repeats:YES];

    [[NSRunLoop mainRunLoop] addTimer:tm forMode:NSDefaultRunLoopMode];

    [tm fire];

......

[tm invalidate];

原文地址:https://www.cnblogs.com/PJXWang/p/5816696.html