UIApplication.applicationDidEnterBackground で beginBackgroundTaskWithExpirationHandler を呼び出すようにとの資料があったが
https://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIApplicationDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/UIApplicationDelegate/applicationDidEnterBackground:
beginBackgroundTaskWithExpirationHandler は”You should not use this method simply to keep your application running after it moves to the background.”と書いてあるので、これを使ってはいけない気がするが。。。では、どうしたらいいのだろう’?
しかし、とりあえず beginBackgroundTaskWithExpirationHandler を呼び出す方法を使ってみたところ、エミュレータではちゃんとバックグランドで動いたし、別に問題ないように見える。
This entry was posted on 2012年7月16日 at 4:22 午後 and is filed under Dev, iPhone apps, 未分類. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
コメントを残す