TTImageView 显示黑色图像(或:替换 TTImageView)

发布于 2024-10-21 15:02:44 字数 324 浏览 2 评论 0原文

我使用 Three20 的 TTImageView 因为它是异步图像加载+缓存。

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

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

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

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

I'm using Three20's TTImageView for it's async image loading + caching.

I've noticed this issue a bunch of times where an image will show up as completely black, and never finish loading. Here's an example of what I'm seeing:

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

So...basically I'm wondering if this is a bug in three20, and if so, how I might go about fixing it (is there a patch out there that might fix it)...OR:

Is there a good TTImageView replacement that performs async image loading + caching?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

感悟人生的甜 2024-10-28 15:02:44

结果我在日志中看到以下内容:

TTRequestLoader connection:didReceiveResponse:: TTDASSERT failed: 0 == _queue.maxContentLength ||内容长度<=_queue\
.maxContentLength

(每个失败的图像一个)

之后,进行了一些谷歌搜索:

http://groups.google.com/group/third20/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] 

Turns out I was seeing the following in my log:

TTRequestLoader connection:didReceiveResponse:: TTDASSERT failed: 0 == _queue.maxContentLength || contentLength <=_queue\
.maxContentLength

(one for each failed image)

After that, a little bit of googling rendered:

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

Jeff Verkoeyen:

The comment immediately before that
assert should shed some light on the
situation.

  // 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] 
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文