---
title: "Rotate UIImageView from Particular side"  
description: "Rotate UIImageView from Particular side"  
author: "Anonymous User"  
published: 2014-11-12  
updated: 2014-11-12  
canonical: https://www.mindstick.com/forum/12565/rotate-uiimageview-from-particular-side  
category: "iphone"  
tags: ["ios", "objective c"]  
reading_time: 1 minute  

---

# Rotate UIImageView from Particular side

I want to [rotate](https://answers.mindstick.com/qa/34548/what-is-rotate-indefinitely) [image](https://www.mindstick.com/articles/23551/an-investigate-distinctive-seafood-restaurant-for-your-image-stamp-character) (UIImageView) from particular side (for ex. [Right](https://www.mindstick.com/articles/12766/check-whether-you-are-doing-digital-transformation-right-or-not) Side).

I know through :-

[float](https://www.mindstick.com/interview/1718/describe-float-containment) degrees = 20; //the [value](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages) in degrees

imageView.transform = CGAffineTransformMakeRotation(degrees * M_PI/180);

but it rotates from center.

I want to rotate my UIImageView from one particular side (i.e. [Left](https://www.mindstick.com/articles/12768/don-t-be-left-behind-with-the-new-it-revolution) side will be at its place, and right side

## Replies

### Reply by Anonymous User

Try to use anchorPoint property.

imageView.layer.anchorPoint = CGPointMake(0, 0);//Top left angle

float degrees = 20; //the value in degrees

imageView.transform = CGAffineTransformMakeRotation(degrees * M_PI/180);

Do not forget to add QuartzCore framework.


---

Original Source: https://www.mindstick.com/forum/12565/rotate-uiimageview-from-particular-side

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
