画像をプリロードするためにフラッディングコードを使用します。
NSMutableArray *test_loose_preload = [[NSMutableArray alloc] initWithCapacity:test_loose_array.count];
for (int aniCount = 0; aniCount < test_loose_array.count; aniCount++) {
UIImage *frameImage = [test_loose_array objectAtIndex:aniCount];
UIGraphicsBeginImageContext(frameImage.size);
CGRect rect = CGRectMake(0, 0, frameImage.size.width, frameImage.size.height);
[frameImage drawInRect:rect];
UIImage *renderedImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
[test_loose_preload addObject:renderedImage];
}
test_loose = test_loose_preload;
このブロック内で、画像がすでにプリロードされていて、これ以上プリロードする必要がないかどうかを確認する可能性はありますか?
アイデアをありがとう!