//旋转
- (IBAction)rotationButtonPressed:(id)sender
{
self.imageView.transform = CGAffineTransformRotate(self.imageView.transform, M_PI_4);
}
//缩放
- (IBAction)scaleButtonPressed:(id)sender
{
self.imageView.transform = CGAffineTransformScale(self.imageView.transform, 0.9, 0.9);
}
//移动
- (IBAction)moveButtonPressed:(id)sender
{
_imageView.transform = CGAffineTransformTranslate(self.imageView.transform, 0, 10);
}
iOS CGAffineTransform属性
最新推荐文章于 2017-10-24 15:58:00 发布