I have a multiple View Controllers and I want to set the font color of all to red.
[[UINavigationBar appearance] setFont:[UIFont boldSystemFontOfSize:12.0]]
Use this line of code
UILabel *badge_Label=[[UILabel alloc]initWithFrame:CGRectMake(5,3, 15, 15)];
badge_Label.backgroundColor=[UIColor redcolor];
badge_Label.font=[UIFont systemFontOfSize:12];
[badge_Label setText:@"20"];
[self.navigationController.navigationBar addSubview:badgelabel];
I think this will be helpful for you.