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


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

three20 ios

kk193 10 years, 6 months ago

在请求完成的时候,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;
saccyan answered 10 years, 6 months ago

Your Answer