这是处理它的代码部分:
NSDate *fireDate = [NSDate dateWithTimeIntervalSinceNow:1.0+index];
NSTimer *timer = [[NSTimer alloc] initWithFireDate:fireDate
interval:0.5
target:self
selector:@selector(countedtargetMethodGlow:)
userInfo:nil
repeats:NO];
NSRunLoop *runLoop = [NSRunLoop currentRunLoop];
[runLoop addTimer:timer forMode:NSDefaultRunLoopMode];
[timer release];
但它是在一个循环中,所以我会做一堆这些,我不知道我需要留下什么才能让射击不被搞砸。