Iphone TTRequestLoader最大内容大小问题

Iphone TTRequestLoader最大内容大小问题,iphone,objective-c,three20,Iphone,Objective C,Three20,尝试使用TTRequestLoader加载大文件时,我遇到以下错误: 2011-06-30 07:25:21.782 xxxxxxx[1261:607] -[TTRequestLoader connection:didReceiveResponse:](317): TTDASSERT failed: 0 == _queue.maxContentLength || contentLength <=_queue.maxContentLength 断言上面有以下内容: // If you h

尝试使用TTRequestLoader加载大文件时,我遇到以下错误:

2011-06-30 07:25:21.782 xxxxxxx[1261:607] -[TTRequestLoader connection:didReceiveResponse:](317):
 TTDASSERT failed: 0 == _queue.maxContentLength || contentLength <=_queue.maxContentLength

断言上面有以下内容:

// 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]
因此,调用
[[TTURLRequestQueue mainQueue]setMaxContentLength:0]
应该可以做到这一点

// 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]