2011年6月20日
摘要: From URL:http://www.markj.net/hjcache-iphone-image-cache/ HJCache is an iOS library that makes it very easy to asynchronously load images from URLs, display them in smooth scrolling tables, and cache the images in file storage.How to Use HJCache? To start with, somewhere in your app initialization, 阅读全文
posted @ 2011-06-20 16:07 古兮之 阅读(574) 评论(0) 推荐(0)
摘要: 本文翻译来自:http://www.markj.net/iphone-asynchronous-table-image/ 在开发iPho ne&iPad应用时,利用UITable从指定的URL中加载图片是经常遇到的。如果采用单线程的同步加载显然不能满足用户的体验要求,所以我们需要利用多线程的方法在应用程序后台并行的去加载图片。但是多线程编程是比较难的,你需要考虑很多线程安全方面的问题。那怎样才能在避免多线程的情况下异步加载图片了?Cocoa提供了一个精彩的设计思维: UIView heirachy + URL loading system + delegate design = mul 阅读全文
posted @ 2011-06-20 13:23 古兮之 阅读(907) 评论(0) 推荐(0)