how to display imageview tilted?

2019-04-17 14:23发布

i want to show my image view some arbitrary degrees tilted instead of just simple straight how to transform it to show tilted? Please help me.

Edit

this is the image view at present enter image description here

and i want like this only image frame with white border will be tilted or slanted

only white bordered image view i want to tilt(slanted) not tiled

1条回答
Summer. ? 凉城
2楼-- · 2019-04-17 14:50

Just set the imageViews transform property:

// 10 degrees
imageView.transform = CGAffineTransformMakeRotation(M_PI / 180 * 10);
查看更多
登录 后发表回答