什么是UIApplicationBackgroundFetchIntervalMinimum的值?

时间:2015-05-11 11:07:46

标签: ios ios7

关于为iOS应用程序设置后台提取功能。

我做:

func application(
    application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?
    ) -> Bool {
        ...
        application.setMinimumBackgroundFetchInterval(
            UIApplicationBackgroundFetchIntervalMinimum)
        ...

如果我在调试器中检查并打印UIApplicationBackgroundFetchIntervalMinimum,它会显示0 - 实际值是多少?

我也尝试过查看api,但没有运气https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/#//apple_ref/occ/instm/UIApplication/setMinimumBackgroundFetchInterval

1 个答案:

答案 0 :(得分:4)

Apple未指定UIApplicationBackgroundFetchIntervalMinimum时间有多长,但实际上大约需要10分钟。