如何显示ImageView的倾斜?(how to display imageview tilted?

2019-07-29 05:46发布

我想告诉我的image view一些arbitrary degrees tilted ,而不是just simple straight如何改造它显示倾斜? 请帮我。

编辑

这是目前图像视图

我想这样的

我想倾斜(倾斜)只有白色边框的图像视图不平铺

Answer 1:

只需设置imageView小号transform属性:

// 10 degrees
imageView.transform = CGAffineTransformMakeRotation(M_PI / 180 * 10);


文章来源: how to display imageview tilted?