报错为:
TTRequestLoader connection:didReceiveResponse:](354): 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]
So calling[[TTURLRequestQueue mainQueue] setMaxContentLength:0]
should do it.
在layoutSubviews
- (void)layoutSubviews {
[superlayoutSubviews];
_statusSpinner.frame = CGRectMake(141, 221, 37, 37);
_statusSpinner.center = CGPointMake(160, 240);
[[TTURLRequestQueuemainQueue] setMaxContentLength:0];
}
http://stackoverflow.com/questions/6534392/ttrequestloader-max-content-size-issue