// navigation bar title
Self.navigationItem.title = @ "title";
// The text setting when the navigation bar returns
self.navigationcontroller.navigationbar.topitem.title= @ "";
// the arrow color setting when the nav bar returns
Self.navigationController.navigationBar.tintColor = [Uicolor Redcolor];
// color of the navigation bar
Self.navigationController.navigationBar.barTintColor =[uicolor Blackcolor];
// Hide Back button
Self.navigationItem.hidesBackButton = YES;
// set navigation bar Beijing color
[[Uinavigationbar Appearance]setbartintcolor:[uicolor Redcolor]];
// set the navigation bar background picture
[[Uinavigationbar appearance]setbackgroundimage:[uiimage imagenamed:@ "ios"] forbarmetrics:uibarmetricsdefault];
// set the color and font size of the navigation bar title
[Self.navigationController.navigationBar settitletextattributes:
@{nsfontattributename:[uifont Systemfontofsize:19],
Nsforegroundcolorattributename:[uicolor Redcolor]}];
This article is from the "11204872" blog, please be sure to keep this source http://11214872.blog.51cto.com/11204872/1745104
Basic usage of the IOS navigation bar