0

嗨,我正在寻找一些关于使用 NSFileManager 将数据存储在目录中的教程,例如缓存等,我真的找不到一个很好的例子。关于在哪里可以找到一些建议?谢谢。附言。我知道也有核心数据,但目前我只想为 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 回答