// Define the transform
CGAffineTransform transform = CGAffineTransformMakeRotation(90 * (M_PI / 180));
// Initialize the UIView
UIView *myView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 320)];
// Do the transformation
// in this case, rotate the UIView 90 degrees
myView.transform = transform;
Источник