我正在使用以下代码在 ImageView 中显示图像:
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 中显示它?如果是这样,我该怎么做?