UIimageView 图片旋转

UIImageView *imageView= [[UIImageView alloc] initWithFrame:CGRectMake(30, 30, 175, 200)];
[imageView setImage:[UIImage imageNamed:@"图片"]];
//创建transform对象
CGAffineTransform transform = openImg.transform;
//顺时针旋转180度
transform=CGAffineTransformRotate(transform, M_PI);
//将新获取的CGAffineTransform函数赋给ImageView
imageView = transform;

你可能感兴趣的:(UIimageView 图片旋转)