how to display imageview tilted?

北城以北 提交于 2020-01-13 07:20:09

问题


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 imageViews transform property:

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


来源:https://stackoverflow.com/questions/10394376/how-to-display-imageview-tilted

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!