How to change shape of an image using iPhone SDK?

久未见 提交于 2020-01-03 05:14:17

问题


I am creating an iPhone app in which I want to give the user the ability to change shape of a given image as shown below. How can I achieve that?

Please let me know.


回答1:


SPUserResizableView is a user-resizable, user-repositionable UIView subclass. It is modeled after the resizable image view from the Pages iOS app. Any UIView can be provided as the content view for the SPUserResizableView. As the view is respositioned and resized, setFrame: will be called on the content view accordingly.

Refer SPUserResizableView link for sample code.



来源:https://stackoverflow.com/questions/12224895/how-to-change-shape-of-an-image-using-iphone-sdk

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