Alex Rivera | Logout

Creating a "chat bubble" on the iPhone, like Tweetie

Asked 2008-12-09T02:24:32.563
12

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.

This is also seen in the Tweetie application where the content of the tweets are.

Edit
Report

1 Answer

20

I suggest using the stretch method they recommend for button images.

[UIImage stretchableImageWithLeftCapWidth:15 topCapHeight:13]

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.

Edit - Source is no longer available(NDA, possibly)

I put the image up here. You should be able to figure out the rest :)

answered 2009-03-30T20:24:04.167

Your Answer