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.
ASIHttpRequestでファイルをダウンロードしようとしましたが、アプリがバックグラウンドに入ると、数秒後にダウンロードが停止します。ファイルを完全にバックグラウンドでダウンロードする方法はありますか?
バックグラウンドで続行できるようにするには、ダウンロード要求を設定する必要があります。
[self.downloadRequest setShouldContinueWhenAppEntersBackground:YES];
self.downloadRequestはASIHTTPRequestであるため、これを自分のものに置き換え、初期化後にこの行を追加すると、バックグラウンドで続行されます:]