Replicating Mail Contact "Bubble" in iPhone SDK
When creating a new message using Mail on the iPhone, and after typing the co开发者_StackOverflow社区ntact, a blue "bubble" appears around the text. Is there some way I can replicate this behavior in my own application?
Thanks for any help!
The way I do this and probably the easiest way is with a custom UIView
. You can draw inside a clipped rounded path with a blue gradient then draw the text on top of it.
You could also take a look at the Three20 project, which has a similar control. However, it's very complicated if you're just looking for that blue bubble.
精彩评论