Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在做类似 groupon 的 ios 应用程序,我在其中使用在后台下载的 NSData 构建图像
[NSData dataWithContentsOfURL:myURL]
在我的表视图中。但相对比groupon慢。我可以实施哪些技术以使其更快。还有我可以在下载后实现的任何缓存技术/框架吗?
试试 AFNetworking。它为 UIImageView 提供了一个类别,这将使您的生活更轻松。
#import "UIImageView+AFNetworking" ..... [imageView setImageWithURL:[NSURL URLWithString:@"theImageURL"]];