1)我的plist配置提供backgroundmode:
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
</array>
Run Code Online (Sandbox Code Playgroud)
2)didFinishLaunchingWithOptions我有:
[[UIApplication sharedApplication] setMinimumBackgroundFetchInterval:1.0];
Run Code Online (Sandbox Code Playgroud)
3)我UIApplicationDelegate在代表中宣布了协议.
4)我实现了以下方法,但它永远不会被触发.(仅当我使用"XCode-> Debug-> Simulate Background Fetch"模拟获取时才有效.)
-(void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
Run Code Online (Sandbox Code Playgroud)
为什么?这是DP5 beta错误吗?我应该雷达吗?