我正在做一個遊戲。它需要大量的圖像。在正常情況下使用該應用程序時,它會運行良好。但是當它發疹時,我得到錯誤24 - 太多的文件打開。錯誤24太多文件打開
我搜索了它,但是,我沒有得到相應的答案。
請回復。從評論
代碼格式化:
-(void)flowerImagesAnimate {
self.flowerImage.animationImages = self.flowerArray;
self.flowerArray = nil;
self.flowerImage.animationDuration = 1.0;
self.flowerImage.animationRepeatCount = 3;
[self.flowerImage startAnimating];
}
- Munnu 1小時前
使用什麼工具構建遊戲? (Cocos2D,標準UIKit + UIImageViews,原生OpenGL ES,其他...?) 通常,遊戲引擎會將圖像加載到內存中,只需在加載內容時打開圖像文件。 – bitgarden
沒有看到任何代碼,幾乎不可能幫助你。 –
- (void)flowerImagesAnimate { self.flowerImage.animationImages = self.flowerArray; self.flowerArray = nil; self.flowerImage.animationDuration = 1.0; self.flowerImage.animationRepeatCount = 3; [self.flowerImage startAnimating]; } –