【发布时间】:2014-10-01 08:41:33
【问题描述】:
在我将项目从 XCode 5 和 iOS 7.1 迁移到 XCode 6 和 iOS 8.0 之前,我的应用程序在后台运行。
不幸的是,现在___repeating 方法是在后台停止重复。我想念什么?最近我在 developer.apple.com 上做了很多更改。这可能是什么原因? Apple 是否更改了后台应用程序的工作规则?代码和功能屏幕位于下方。
- (instancetype)init {
self = [super init];
if (self) {
[NSTimer scheduledTimerWithTimeInterval:2.0 target:self selector:@selector(___repeating) userInfo:nil repeats:YES];
}
return self;
}
- (void)___repeating {
DLog(@"Working!");
}
【问题讨论】:
标签: ios objective-c xcode ios8 xcode6