我正在做一个游戏。它需要大量的图像。在正常情况下使用该应用程序时,它会运行良好。但是当它发疹时,我得到错误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]; } –