In UITabBarItem how to change the color of text..By default the text is appearing in whiteColor. I want to change to black, how to do it?
Asked
Active
Viewed 782 times
1 Answers
0
In ViewController.m
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self)
{
[self.tabBarItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor greenColor],UITextAttributeTextColor,nil] forState:UIControlStateNormal];
}
return self;
}

Vineesh TP
- 7,755
- 12
- 66
- 130