How is the size detected from an image and then use that size to create a UIImageView, perfectly fitting the image inside?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just create the UIImageView like this:
So the ImageView has the size of the image. From the Documentation of UIImageView:
I hope my answer helps you. 😀
Sandro