【发布时间】:2014-08-16 11:31:05
【问题描述】:
我的应用中有一个标签,上面有一个徽章编号,基于在 3 个不同时间发生的 3 个不同操作。我知道如何设置标签栏徽章使用:
[[[[[self tabBarController] tabBar] items]
objectAtIndex:3] setBadgeValue:[NSString stringWithFormat:@"%d", (int)thetabbadge]];
我想要做的是获取当前的徽章编号(0 代表什么都没有,或者那里可能已经存在任何数字),并将其增加另一个 NSInteger。有没有办法读取当前的徽章编号属性?
【问题讨论】:
标签: ios uitabbarcontroller badge