5
votes

I have a single image that needs to be placed on multiple UIImageView.

I am wondering whether there is a way to save the memory in doing this?

For e.g., I have a pic file. I can create one UIImage object for this file. If I create multiple UIImageView and init them with the single UIImage Object, will that save the memory?

thanks

1

1 Answers

7
votes

Yes, it will save memory compared to one UIImage per UIImageView. How significant will it be? To find out, you'll have to run it both ways and watch the memory allocations by Instruments.