私はです。NSTimerとアクションはです。しかし、私はに初めて電話したいと思っています。Objective-CのNSTimerのnonTequiredTimerWithTimeInterval
_timepast = 6;
self.timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(handleDelay) userInfo:nil repeats:YES];
-(void)handleDelay
{
_timepast = _timepast - 1;
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(_timepast * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self handleTimer];
});
}
、のようなチェックを逆に書くのか? –
@HardikShahうん、そうです。 –