0

こんにちは、NSFileManager を使用してキャッシュなどのディレクトリにデータを保存するためのチュートリアルを探しています。どこで見つけられるかについての推奨事項はありますか?ありがとう。ps。コア データもあることは知っていますが、現時点では、NSFileManager 用のデータを見つけることに興味があります。

4

1 に答える 1

0

写真を表示するアプリがあり、見た写真をキャッシュして、既に見た写真を再ダウンロードする必要がないようにしたい

見るNSURLCache

クラスの概要:

NSURLCache implements the caching of responses to URL load
requests by mapping NSURLRequest objects to NSCachedURLResponse
objects. It is a composite of an in-memory and an on-disk cache.

Methods are provided to manipulate the sizes of each of these
caches as well as to control the path on disk to use for persistent
storage of cache data.
于 2012-08-13T23:13:36.023 に答える