1

非同期画像の読み込みとキャッシュのためにThree20のTTImageViewを使用しています。

この問題は、画像が完全に黒く表示され、読み込みが完了しないことが何度もあることに気づきました。これが私が見ているものの例です:

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

だから...基本的に私はこれがthree20のバグであるかどうか疑問に思っています、そしてもしそうなら、どうやってそれを修正することができますか(それを修正するかもしれないパッチがそこにありますか)...または:

非同期画像の読み込みとキャッシュを実行する優れたTTImageViewの代替品はありますか?

4

1 に答える 1

1

ログに次の情報が表示されていたことがわかりました。

TTRequestLoader接続:didReceiveResponse :: TTDASSERTが失敗しました:0 == _queue.maxContentLength || contentLength <= _ queue \ .maxContentLength

(失敗したイメージごとに1つ)

その後、少しグーグルがレンダリングされました:

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

Jeff Verkoeyen:

その主張の直前のコメントは、状況にいくらかの光を当てるはずです。

  // 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 に答える