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.
我们对 iOS 6 的新缓存功能有一些问题 :)。有人可以告诉我数据在沙盒缓存中存储了多长时间,因为即使在应用程序更新之后 - 我假设 - 缓存也没有被清理。
打招呼
在获取数据时使用options,这将允许您更好地控制缓存:
options
NSData* data = [NSData dataWithContentsOfURL:url options:NSDataReadingMappedIfSafe error:&err];
查看文档以获取更多选项