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

15次阅读

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

agassi_yzh

在请求完成的时候,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;

gaosboy

正文完