这有点小技巧,但试图在工具栏项上获得徽章。快到了,但它出现在后面,尝试了正常的方法到达前面,但没有运气。
deletedCountBadge = [CustomBadge customBadgeWithString:@"0"];
deletedCountBadge.frame = CGRectMake(100,10,25,25);
UIView *view = (UIView *)[bottomToolBar.subviews objectAtIndex:0];
[view addSubview:deletedCountBadge];