Is there an API that will let me reproduce the blue round email address bubbles easily? You see these bubbles in Mail on MacOS a开发者_开发问答nd on the iPhone.
Thanks!
To get a rounded label simply include the QuartzCore-Framework in your project and add this to your .m file:
#import <QuartzCore/QuartzCore.h>
Then create a regular UILabel *label
. Set the font, textColor, backgroundColor as you like and then add rounded Corners:
label.layer.cornerRadius = label.frame.size.height/2;
Yes. Use the NSTokenField class.
Might want to take a look at Numeric badges on the iPhone.
Another alternative is the Three20 project. Its samples shows a method for compositing 'badges.'
精彩评论