Is it possible to rotate only image in UIImageView? I’m looking for information about it, but i only found information how rotate UIImageVeiw.
Is it possible to rotate only image in UIImageView? I’m looking for information about
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.
You can rotate the image with the following code. Note, this uses a CGImageRef which you can get from a UIImage via
Once you get the rotated image, you can set the ImageView’s image to your new rotated image like this:
here is a method that will rotate the imageRef: