Iphone - one UIImage multiple UIImageView?

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

I am wondering if there is a way to preserve memory while doing this?

For example, I have a pic file. I can create one UIImage object for this file. If I create several UIImageView and run them with a single UIImage object, will it save memory?

thank

+5
source share
1 answer

Yes, it will save memory compared to one UIImage in a UIImageView. How significant is this? To find out, you will have to run it in both directions and observe the memory allocations using tools.

+7
source

All Articles