I want to change the color and font of my UINavigationBar title. How can i do that either with code or with interface builder ? It might be an easy one but i'm new to xcode. Thanks for helping.
Asked
Active
Viewed 2,768 times
0
-
check this out-- http://stackoverflow.com/questions/599405/iphone-navigation-bar-title-text-color – Agent Chocks. Apr 18 '13 at 06:53
1 Answers
0
For the coding part, what you can do is initiate the title view with a label.
UILabel *myLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 10, 40)];
[myLabel setFont:[UIFont fontWithName:@"Arial" size:12]];
[myLabel setTextColor:[UIColor whiteColor]];
[myLabel setText:@"My text here"];
[**your navigation bar**.topItem setTitleView:myLabel];

zbMax
- 2,756
- 3
- 21
- 42