6 番目の tabbaritem にバッジの値を設定したい ?? どうやってするか。self.tabbaritem.badgevalue=@"" を使用して、4 番目の tabbaritem にバッジの値を設定できます。
しかし、同じ原則を使用して、バッジを 6 番目の tabbaritem に設定できません。私を助けてください???
次のコードには、バッジの値が含まれています。
CustomBadge *customBadge1=[[CustomBadge alloc]init];
customBadge1 = [CustomBadge customBadgeWithString:[self getBadges]
withStringColor:[UIColor whiteColor] withInsetColor:[UIColor redColor] withBadgeFrame:YES withBadgeFrameColor:[UIColor whiteColor]
withScale:1.0 withShining:YES];
[customBadge1 setFrame:CGRectMake(self.view.frame.size.width/2-customBadge1.frame.size.width/4,20, customBadge1.frame.size.width, customBadge1.frame.size.height)];
[self.view addSubview:customBadge1];