IOS development-backBarButtonItem color/Text Modification
After iOS7. The default return button font color is blue and displays the title of the parent VC (upper-level interface ).
If you want to modify it, you can use the following method:
1. Modify the font color
(1) Add View controller-based status bar appearance in plist and set it to NO
(2) Add the following code on the interface to be modified (add it to viewDIdLoad)
Self. navigationController. navigationBar. barStyle = UIStatusBarStyleDefault; [self. navigationController. navigationBar setTintColor: [UIColor greenColor];
2. Modify text content
If A ---> B is pushed from A to B, the return button is
Add the following code in interface:
UIBarButtonItem * backItem = [[UIBarButtonItem alloc] init]; backItem. title = @ ""; self. navigationItem. backBarButtonItem = backItem;
The text of the return button is changed to ""