Modify the font size and color of NavigationBarItem on the UINavigationBar (navigation bar ).
// Create a button on the left
UIBarButtonItem * leftButton = [[UIBarButtonItemalloc] initWithTitle: @ "<" style: UIBarButtonItemStylePlaintarget: selfaction: @ selector (clickLeftButton)];
// LeftButton.
[LeftButton setTitleTextAttributes: [NSDictionarydictionaryWithObjectsAndKeys:
[UIFontfontWithName: @ "Helvetica-Bold" size: 17.0], NSFontAttributeName,
[UIColorgreenColor], NSForegroundColorAttributeName,
Nil]
ForState: UIControlStateNormal];
// Create a button on the right
UIBarButtonItem * rightButton = [[UIBarButtonItemalloc] initWithTitle: @ "login" style: UIBarButtonItemStyleDonetarget: selfaction: @ selector (clickRightButton)];
[RightButton setTitleTextAttributes: [NSDictionarydictionaryWithObjectsAndKeys:
[UIFontfontWithName: @ "Helvetica-Bold" size: 17.0], NSFontAttributeName,
[UIColorgreenColor], NSForegroundColorAttributeName,
Nil]
ForState: UIControlStateNormal];