views:

1287

answers:

1

How to create bubbble message box similar to iPhone buildin SMS app?

I'm trying to create a table cells with a bubble message box, similar to the iPhone SMS app or iChat.

Anybody have example code I can refer to?

+4  A: 

UIImage's can have borders at the sides and bottom that don't resize as the image is stretched.

The leftCapWidth and topCapHeight are the 2 properties you need to modify to achieve this.

Then create a UIImageView (using the image) of the necessary size behind your text.

CynicismRising
Thanks!I also found earlier question asked on this same topic,http://stackoverflow.com/questions/351602/creating-a-chat-bubble-on-the-iphone-like-tweetie
Seymour Cakes