I have an array of images loaded using imagewithcontentsof file so no caching occurs.
Now lets say for arguments case the array has just 2 images (a lot more in reality) and these 2 images when loading into the array take up 2mb of memory.
Now I have an imageview which I set to switch between the images in the array using imageview.image = [myArray objectAtIndex: n];
When I do this memory usage increases as if I am loading another version of each image into memory so I end up with 4mb of memory usage.
In reality the numbers involved are greater and not so even but you get the idea.
I was under the impression that the image in the imageview was pointing to the array and not creating a new copy?
Have I lost the plot here?
Any help would be greatfully received
Thanks
Now lets say for arguments case the array has just 2 images (a lot more in reality) and these 2 images when loading into the array take up 2mb of memory.
Now I have an imageview which I set to switch between the images in the array using imageview.image = [myArray objectAtIndex: n];
When I do this memory usage increases as if I am loading another version of each image into memory so I end up with 4mb of memory usage.
In reality the numbers involved are greater and not so even but you get the idea.
I was under the impression that the image in the imageview was pointing to the array and not creating a new copy?
Have I lost the plot here?
Any help would be greatfully received
Thanks