摘要: 本来在下载完成之后,在UIImageWriteToSavedPhotosAlbum 里面响应image: (UIImage*) imagedidFinishSavingWithError: (NSError*) error contextInfo: (void*) contextInfo这个函数,然后来更新UI的,但是操作比较繁琐,而且UI的更新总是无法同步。所以采用GCD的方式,来完成,非常顺畅。- (void)downloadImageToPhotoAlbum{ [self.viewaddSubview:downloadingView]; dispatch_async(dispatch.. 阅读全文
posted @ 2012-05-29 16:44 worldworld 阅读(501) 评论(0) 推荐(0) 编辑
摘要: 报错为: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 follow 阅读全文
posted @ 2012-05-29 12:32 worldworld 阅读(235) 评论(0) 推荐(0) 编辑