Hi there, I'm pretty new to programming on the iPhone and I've run into an issue. I have an app that's supposed to load one of 30 images based on the date. I've stored each image in a separate nib file and wrote a method to choose and load the appropriate nib file. My problem is that when I load a new nib file, the memory allocated to the image from the previous nib file doesn't get deallocated. Each image takes up one 512k Malloc.
My question is do I need to find a way to deallocate these images? Or will my app pass apple inspection without doing so. In the very worst scenario which I'm sure would never happen in a real user situation, all 30 images would be loaded into memory thus taking up about 15 megs of memory.
I'd like to do this cleanly, but for the life of me, I can't figure out how to deallocate an image created in a nib file...
Any help is greatly appreciated. Thank you.
My question is do I need to find a way to deallocate these images? Or will my app pass apple inspection without doing so. In the very worst scenario which I'm sure would never happen in a real user situation, all 30 images would be loaded into memory thus taking up about 15 megs of memory.
I'd like to do this cleanly, but for the life of me, I can't figure out how to deallocate an image created in a nib file...
Any help is greatly appreciated. Thank you.