84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
如下图QQ的界面所示,消息标签处红色角标如何实现?它与应用图标外的红色通知角标实现原理相同吗?请尽可能详细的描述一下
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
Damn it, when I came in, I saw that I was an acquaintance. . . I haven't done this, but I think I've seen it.
The external subscript code is as follows:
[UIApplicationsharedApplication].applicationIconBadgeNumber = 2333;
The corner mark of this Tabbar is like this:
UITabBarItem *item = [[UITabBarItem alloc] initWithTitle:@"建伟傻逼" image:nil tag:0]; customItem1.badgeValue = @"2333";
So the code is different. By the way, Cell, UILabel can be achieved by setting the background color to red and rounded corners
UILabel
What you said above is correct, add a UILabel Change the font color and background color Then change the corner in the layer That value should be half of your UILabel
Damn it, when I came in, I saw that I was an acquaintance. . . I haven't done this, but I think I've seen it.
The external subscript code is as follows:
The corner mark of this Tabbar is like this:
So the code is different.
By the way, Cell,
UILabel
can be achieved by setting the background color to red and rounded cornersWhat you said above is correct, add a UILabel
Change the font color and background color
Then change the corner in the layer
That value should be half of your UILabel