Part of my app downloads images from the Internet and stores them in a mutable array. This is so that they do not have to be downloaded every time the user wants to view them. When I exit the view that deals with these images, the mutable array gets released. If there is only one image stored in the array, everything runs smoothly. However, if there is more than one image, the app crashes with an EXC_BAD_ACCESS. Using NSZombies, I get the following error:
*** -[UIImage isKindOfClass:]: message sent to deallocated instance 0x5b8eae0
However, I do not use the isKindOfClass message in my app, so it's obviously being sent by some other system method. What is causing this message to be sent, how do I go about fixing this issue, and why is it only happening if there is more than one image in the array? Thanks.