我想每 6 小时调用一次 Web 服务。我是 iOS 新手。请帮助任何帮助将不胜感激。我被困住了。
最佳答案
您可以使用 NSTimer 并将其安排 6 小时
NSTimer *timer = nil;
timer = [NSTimer scheduledTimerWithTimeInterval:6*60*60 //6 hour
target:self
selector:@selector(performAction)
userInfo:nil
repeats:YES];
关于ios - timeInterval 后的 WebService 调用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33076883/