0

我想在后台每半小时调用一次函数。

描述:我在 - (void)applicationDidEnterBackground:(UIApplication *)application方法中调用了一个函数。我需要每半小时重复一次该功能。请帮我这样做。如果您需要任何详细信息,请告诉我。

4

1 回答 1

0

在您的应用程序支持这些之前,您无法function在您的应用程序运行时运行任何程序 -background

Apps that play audible content to the user while in the background, such as a music player app

Apps that keep users informed of their location at all times, such as a navigation app

Apps that support Voice over Internet Protocol (VoIP)

Newsstand apps that need to download and process new content

Apps that receive regular updates from external accessories

有关更多详细信息,您可以在后台执行哪些操作以及如何操作,请访问 -

http://developer.apple.com/library/ios/#DOCUMENTATION/iPhone/Conceptual/iPhoneOSProgrammingGuide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html

于 2012-08-30T08:10:33.947 回答