问题
I am doing a game. it requires lots of images. When using the app in normal case it will be quite running fine. But when it rash then i get the error 24 - too many files open.
I searched it but , i didn't get the appropriate answer.
please reply.
Code from comment formatted:
-(void)flowerImagesAnimate {
self.flowerImage.animationImages = self.flowerArray;
self.flowerArray = nil;
self.flowerImage.animationDuration = 1.0;
self.flowerImage.animationRepeatCount = 3;
[self.flowerImage startAnimating];
}
– Munnu 1 hour ago
回答1:
Don't open so many files.
If you have more open than you need, close them. If you need that many open, collect them in to 1 larger image and use portions.
来源:https://stackoverflow.com/questions/7687550/error-24-too-many-files-open