2010-09-29 83 views

回答

1

一般來說,蘋果希望您使用推,而不是拉,因爲它可以節省電池壽命。 但是,如果你想要跟投票一起,有一些事情要研究。 Apple文檔描述了background tasks in depth here。 (請注意,您可能需要註冊的開發,看看它聽起來好像你已經是雖然。)特別是,要使用這些方法:

  • applicationWillResignActive:

  • applicationDidEnterBackground:

  • applicationWillEnterForeground:

  • beginBackgroundTaskWithExpirationHandler:

相關問題