我使用下面的代码在我的ImageView显示图像显示它比较快的方式:从URL中加载图像,并在iPhone应用程序
imgbackBG.image = [UIImage imageWithData:
[NSData dataWithContentsOfURL:
[NSURL URLWithString:[NSString stringWithFormat:@"http://%@", [test.arrImagessplash objectAtIndex:[test.arrImages count]-4]]]]];
4cing.com/mobile_app/uploads/pageicon/splash.png
的问题是,代码执行速度非常缓慢。有没有办法加载图像并更快地将其显示在ImageView中?如果是这样,我该怎么做?
使用Asychnrous图像加载方法猪头...一旦有一个在他们过目..... –
可以请给一些示例代码? – Anjaneyulu
看了这个,并熟悉这个用法然后看看SDWebImage ...享受 –