搜索
ios - three20的TTURLRequest可以在发请求前获取到时候cache了的状态吗?
迷茫
迷茫 2017-04-17 10:58:05
[iOS讨论组]

three20的TTURLRequest可以在发请求前获取到时候cache了的状态吗?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

全部回复(1)
ringa_lee

在请求完成的时候,request里有一个 respondedFromCache 的属性,bool型的。

定义如下:

/**
 * Whether or not the request was loaded from the cache.
 *
 * This is only valid after the request has completed.
 */
@property (nonatomic) BOOL respondedFromCache;
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板