我有以下代码
UIImageView *r = [[UIImageView alloc] initWithFrame:CGRectMake(10, 80, 300, 300)];
r.image = [UIImage imageNamed:@"testbg"];
[UIImageView beginAnimations:nil context:NULL];
[UIImageView setAnimationDuration:0.1];
r.transform = CGAffineTransformMakeRotation(deg(30));
[UIImageView commitAnimations];
r.image = [UIImage imageNamed:@"rotbg"];
o 旋转后,我想更改视图中的图像,但它会被旋转,如何在不旋转的情况下绘制图像?