Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change textColor of UINavigationBar "prompt"?

Any (supported) way of doing this? IIRC it usually switches over by itself to a white color at some point when using a "darker than X" tintColor, but we seem to be just on the edge with our scheme.

like image 214
avocade Avatar asked Dec 18 '22 05:12

avocade


1 Answers

It's possible in iOS5:

[[UINavigationBar appearance] setTitleTextAttributes:
      [NSDictionary dictionaryWithObjectsAndKeys:
       [UIColor whiteColor], UITextAttributeTextColor, nil]];
like image 141
Felix Avatar answered Dec 30 '22 20:12

Felix