1

我正在使用 Three20 的 TTImageView 进行异步图像加载+缓存。

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

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

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

是否有执行异步图像加载+缓存的良好 TTImageView 替代品?

4

1 回答 1

1

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

TTRequestLoader 连接:didReceiveResponse:: TTDASSERT 失败:0 == _queue.maxContentLength || contentLength <=_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] 
于 2011-03-15T15:38:21.973 回答