清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
// 创建UIImage对象 UIImage *image = [UIImage imageNamed:@"sample.png"]; // 创建UIImageView UIImageView *imageView = [ [ UIImageView alloc ] initWithFrame:CGRectMake(0.0, 0.0, image.size.width, image.size.height) ]; imageView.image = image; [self addSubview:imageView]; // 旋转 CGAffineTransform rotate = CGAffineTransformMakeRotation( 1.0 / 180.0 * 3.14 ); [imageView setTransform:rotate];