我正在创建一个应用程序,其中我正在为Imageview加载800 jpg图像。出现不同的enevts不同的图像集将被加载for animation.on它的第一个事件罚款,但第二次事件它在iPhone上崩溃。任何帮助? 我的代码部分如下加载大量图像时崩溃
for (int aniCount = 1; aniCount < 480; aniCount++){
UIImage *frameImage = [UIImage imageWithContentsOfFile: [[NSBundle mainBundle] pathForResource: [NSString stringWithFormat: @"ani_soft_whimper_%i", aniCount] ofType: @"jpg"]];
[_arr_ImagesSoftWhimper addObject:frameImage];
}
imageView.animationImages = _arr_ImagesSoftWhimper;
而我会越来越崩溃对这些图像集。
把一些代码如何加载图像... –
使用延迟加载使用UITableView。 –