创建“聊天气泡”在iPhone上,像Tweetie [英] Creating a "chat bubble" on the iPhone, like Tweetie
问题描述
只是好奇,我忽略了API中的某处,以显示在iPhone的SMS应用程序中找到的聊天气泡类型图像?有几个应用程序,使用气泡,看起来像是iPhone的,我想知道他们是使用本机窗口小部件还是自己的图像。
Just curious, did I overlook somewhere in the API to display a chat bubble type image as found in the iPhone's SMS application? There's a few applications out there that use bubbles that look verbatim to the iPhone's and I'm wondering if they're using a native widget or their own image.
这是
推荐答案
我建议使用他们推荐的按钮图片的拉伸方法。
I suggest using the stretch method they recommend for button images.
[UIImage stretchableImageWithLeftCapWidth:15 topCapHeight:13]
您可以通过下载 Twitterfon 的源代码来查看一个工作示例(它在常见问题页面)。
You can see a working example by downloading Twitterfon's source(it's on the FAQ page). You can see how they code a reusable control for it as well as example images for creating your own bubble.
编辑 - 源不再可用(NDA,可能)
Edit - Source is no longer available(NDA, possibly)
我把图片上传到这里。你应该能够弄清楚其余的:)
I put the image up here. You should be able to figure out the rest :)
这篇关于创建“聊天气泡”在iPhone上,像Tweetie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!