Creating a “chat bubble” on the iPhone, like Tweetie

后端 未结 8 1267
遇见更好的自我
遇见更好的自我 2020-12-07 19:43

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 u

相关标签:
8条回答
  • 2020-12-07 20:15

    You need to use your own images, and Apple recommends using 9 UIImageViews (3 rows of 3) (Top Left Corner, Top Middle, Top Right Corner, Middle Left Side, Middle, Middle Right Side, Bottom Left Corner, Bottom Middle, Bottom Right Corner)

    0 讨论(0)
  • 2020-12-07 20:15

    It's pretty easy to make UILabels with stretchable image background. If you are wanting to put images in the bubble you'll have to do some masking to get it to look like Apple's. Check out the BubbleThingie sample code for example of how to do the image masking. It also has example of how to do the text bubbles using a UIButton or UILabel.

    enter image description here

    0 讨论(0)
提交回复
热议问题