如何在 iPhone 中拉伸图像而不显得扭曲?
我正在开发聊天应用程序,我想根据文本拉伸聊天气泡图像,但不知道如何做到这一点。
请就此事提出您的建议。
谢谢
I am working on chat application and i want to stretch chat bubble image as per text but not getting how to do that.
Please give your suggestion for this matter.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看:
http://developer.apple.com/library/ios/documentation/uikit/reference/UIImage_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006890-CH3-SW4
这将创建一个边角为 5x5 的图像,该图像不会拉伸,但主体会拉伸。
Look at:
http://developer.apple.com/library/ios/documentation/uikit/reference/UIImage_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006890-CH3-SW4
This will create an image with the corners 5x5 which doesn't stretch, but with a body that does.