Yes, you can use a little trick.
In your code, declare a new UIView category like this
@interface UIView (IBRotateView) @property (nonatomic, assign) CGFloat rotation; @end @implementation UIView (IBRotateView) @dynamic rotation; - (void)setRotation:(CGFloat)deg { CGFloat rad = M_PI * deg / 180.0; CGAffineTransform rot = CGAffineTransformMakeRotation(rad); [self setTransform:rot]; } @end
Now you can use the run "rotation" parameter directly on the interface builder, as it is on any UIView that you like.

Obviously, the interface builder will not rotate the view in the internal render, because it will only affect runtime rendering.
source share