Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting UIImageView to UIImage

I'm working with images, I have tonnes of them, and I'm downloading them in real time from the server, before it was really fast with the AsyncImageView class, but know I'm working with the custom class, that takes UIImage instead of UIImageView.

Question: Is there any good way to convert UIImageView to UIImage?

Thanks in advance!

like image 621
Anatoliy Gatt Avatar asked Dec 05 '25 18:12

Anatoliy Gatt


1 Answers

you dont need to show a UIImageView inside a UIImage. Maybe you want to show a UIImageView inside another UIImageView or maybe you want to access the UIImageView's image property, which you can do with imageView.image:

UIImage *imageFromImageView = myImageView.image

or if its the image view inside another image view option:

[myOuterImageView addSubiew:myInnerImageView];
like image 160
wattson12 Avatar answered Dec 08 '25 12:12

wattson12



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!