Iphone – How to rotate an UIImageView in Interface Builder

interface-builderiphonerotationuiimageviewxcode

Is it possible to rotate an UIImageView in Interface Builder from XCode? Like I can do it in Photoshop, where I can scale and rotate an image.

I know it is possible by code but is there a way to do this in the interface builder?

Best Answer

Yes, you can do this in interface builder without any additional code with layer.transform.rotation.z runtime attribute. Note that this value is in radians.

rotation