问题
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

and i want like this

only white bordered image view i want to tilt(slanted) not tiled
回答1:
Just set the imageView
s transform
property:
// 10 degrees
imageView.transform = CGAffineTransformMakeRotation(M_PI / 180 * 10);
来源:https://stackoverflow.com/questions/10394376/how-to-display-imageview-tilted