开发者

How does the mail icon count number show up on the iPad / iPhone

开发者 https://www.devze.com 2023-01-09 05:34 出处:网络
I want to use the same number count like the mail icon for th开发者_开发百科e iPhone and iPad how does that small number pop up over an icon?[UIApplication sharedApplication].applicationIconBadgeNumbe

I want to use the same number count like the mail icon for th开发者_开发百科e iPhone and iPad how does that small number pop up over an icon?


[UIApplication sharedApplication].applicationIconBadgeNumber = 3;

Remember to set this to 0 when you want the badge to go away, so it doesn't get stuck there annoyingly.

0

精彩评论

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

关注公众号