Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私のiPhoneアプリはサーバーからファイルをダウンロードします。バックグラウンドに戻って一定時間待ってからフォアグラウンドに戻すと、エラーが表示されますInternet connection failed。
Internet connection failed
ダウンロードがバックグラウンドで実行されるときに、このエラーを回避するにはどうすればよいですか?
iPhone のタスクは、閉じられた後、そのジョブを完了することができる一定の時間があります。そうでない場合は、殺されます。
参照: https://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html#//apple_ref/doc/uid/TP40007072-CH4-SW3