如何使用iPhone SDK改变图像的形状? [英] How to change shape of an image using iPhone SDK?

查看:91
本文介绍了如何使用iPhone SDK改变图像的形状?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建一个iPhone应用程序,其中我想给予用户更改给定图像的形状的能力,如下所示。如何实现?

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?

请让我知道。

推荐答案

SPUserResizableView 是用户可调整大小的用户可重定位的UIView子类。它是在页面iOS应用程序的可调整大小的图像视图之后建模的。任何UIView都可以作为SPUserResizableView的内容视图。由于视图被重新定位和调整大小,setFrame:将相应地调用内容视图。

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.

请参阅 SPUserResizableView 链接。

这篇关于如何使用iPhone SDK改变图像的形状?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆