meetpd
meetpd

Reputation: 9219

How to change shape of an image using iPhone SDK?

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?

enter image description here

Please let me know.

Upvotes: 0

Views: 462

Answers (1)

Paresh Navadiya
Paresh Navadiya

Reputation: 38249

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.

Upvotes: 2

Related Questions