我现在要调查UIWebView的缓存(URLCache),时间非常紧。
有没有人做过相关方面的东西,先告诉我一些相关的建议或者一些注意点。
有没有人做过相关方面的东西,先告诉我一些相关的建议或者一些注意点。
解决方案 »
- iPhone插到PC上路径为"计算机\Apple iPhone",请问PC上如何写C++程序对这个路径进行读取、存储文件?
- 如何制作一个基于IOS的视频播放器
- 为什么苹果不能在Andriod上开发应用?
- 请教,目前如果做IOS开发需要的硬件和软件环境
- 关于IOS中UIScrollView中的contentOffset的问题
- 请问同名同类型的certificate ,怎么理解?
- 类似 iBooks 界面布局
- 触屏点餐系统,用什么语言开发?
- IOS 疑问
- iOS mysql-connect-c 往mysql中插入数据时 出现中文乱码
- 求用纯代码做界面的源代码
- 关于iPhone的例子URLCache
cachePolicy: NSURLRequestUseProtocolCachePolicy
timeoutInterval: 60.0]]; 你是说像NSURLRequestUseProtocolCachePolicy ?
NSURLRequestCachePolicy defines constants that are used to specify interaction with the cached responses.
Constant
Description
NSURLRequestUseProtocolCachePolicy
Specifies that the caching logic defined in the protocol implementation, if any, is used for a particular URL load request. This is the default policy for URL load requests.
NSURLRequestReloadIgnoringCacheData
Specifies that the data for the URL load should be loaded from the originating source. No existing cache data should be used to satisfy a URL load request.
NSURLRequestReturnCacheDataElseLoad
Specifies that the existing cached data should be used to satisfy the request, regardless of its age or expiration date. If there is no existing data in the cache corresponding the request, the data is loaded from the originating source.
NSURLRequestReturnCacheDataDontLoad
Specifies that the existing cache data should be used to satisfy a request, regardless of its age or expiration date. If there is no existing data in the cache corresponding to a URL load request, no attempt is made to load the data from the originating source, and the load is considered to have failed. This constant specifies a behavior that is similar to an “offline” mode.