开发者

Is there an API for the blue email address bubbles?

开发者 https://www.devze.com 2022-12-11 12:32 出处:网络
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.

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.'

0

精彩评论

暂无评论...
验证码 换一张
取 消