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?
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?
Yes you can but using a little trick.
Declare in your code a new UIView Category like this
Now you can use a runtime parameter "rotation" directly on interface builder like this on any UIView you like.
Obviously interface builder will not rotate the view in its internal render because it will only effect the runtime rendering.
Nope thats not possible in the interface builder but the code is quite simple:
You can't do this in the current version of Xcode. You may submit a feature request to Apple at http://radar.apple.com
However if you want to do it, you will need to write some code
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.