3
嘗試使用TTRequestLoader加載大文件時,我得到這些錯誤:TTRequestLoader最大內容大小問題
2011-06-30 07:25:21.782 xxxxxxx[1261:607] -[TTRequestLoader connection:didReceiveResponse:](317):
TTDASSERT failed: 0 == _queue.maxContentLength || contentLength <=_queue.maxContentLength
是否有增加TTURLRequest加載的文件的大小,以aviod這些功能錯誤?
我的代碼:
TTURLRequest* request = [TTURLRequest
requestWithURL: [_url absoluteString]
delegate: self];
request.cachePolicy = cachePolicy;
request.cacheExpirationAge = (60*60*24*3);
TTURLDataResponse* response = [[TTURLDataResponse alloc] init];
request.response = response;
TT_RELEASE_SAFELY(response);
謝謝,它的工作原理 – aporat