Likely it is a memory management issue. Are you abiding by rules set out in the Memory Management Programming Guide? Try:
- revising the memory management rules, make sure you are not using any objects that you don’t own, make sure you are retaining objects you want to keep (and releasing them appropriately afterwards);
- running your code through the static analyser;
- enabling NSZombies;
- running your app through Leaks.
You have not given us anywhere near enough information for us to give you a reliable, straightforward answer.
solved ObjectAtIndex method of an NSMutableArray Object [closed]