Reputation: 4595
I'm creating messenger, I have bubble:
I want to stretch it to something like this to add text:
How can I do it?
Thanks.
Upvotes: 0
Views: 639
Reputation: 2582
I have created a ditto iMessage like bubble using 4 UIViews. It is available in both code and XIB (UITableViewCell). It is highly customizable. You can change the color, font, font size, tail or no tail, etc. Do check it out here
https://github.com/kerrygrover/iMessageBubble
Upvotes: 1
Reputation: 96323
Use the NSDrawThreePartImage
function to draw the bubble.
It takes three NSImages, so you will need to chop up your source image into three separate images—either in your image editor, or in code—and use those.
Upvotes: 2