【问题标题】:TTImageView shows black image (OR: replacement for TTImageView)TTImageView 显示黑色图像(或:替换 TTImageView)
【发布时间】:2011-03-14 18:33:56
【问题描述】:

我正在使用 Three20 的 TTImageView 来实现异步图像加载 + 缓存。

我已经多次注意到这个问题,图像会显示为全黑,并且永远不会完成加载。这是我所看到的示例:

http://screencast.com/t/7O7fnedX5Z2

所以...基本上我想知道这是否是three20中的一个错误,如果是,我将如何修复它(是否有补丁可以修复它)...或者:

有没有很好的 TTImageView 替代品来执行异步图像加载 + 缓存?

【问题讨论】:

    标签: iphone asynchronous three20 image-caching


    【解决方案1】:

    原来我在日志中看到了以下内容:

    TTRequestLoader 连接:didReceiveResponse::TTDASSERT 失败:0 == _queue.maxContentLength ||内容长度

    (每个失败的图像一个)

    之后,一点点谷歌搜索呈现:

    http://groups.google.com/group/three20/browse_thread/thread/8bfac3654a6d9674/caf797f265445971?pli=1

    杰夫·沃科伊恩:

    之前的评论 断言应该对 情况。

      // If you hit this assertion it's because a massive file is about to be downloaded. 
      // If you're sure you want to do this, add the following line to your app delegate startup 
      // method. Setting the max content length to zero allows anything to go through. If you just 
      // want to raise the limit, set it to any positive byte size. 
      // [[TTURLRequestQueue mainQueue] setMaxContentLength:0] 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-08-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-06-09
      • 1970-01-01
      相关资源
      最近更新 更多