search

Home  >  Q&A  >  body text

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

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

迷茫迷茫2771 days ago593

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 11:00:05

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

    reply
    0
  • Cancelreply