标签:
self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
在push的时候,在A中添加代码:
UIBarButtonItem *backItem = [[UIBarButtonItem alloc] init];
backItem.title = @
"你的文字"
;
self.navigationItem.backBarButtonItem = backItem;
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"全部已读" style:UIBarButtonItemStylePlain target:self action:@selector(allReadedTapped)];
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"backIcon"] style:UIBarButtonItemStyleBordered target:self action:@selector(backButtonTouched:)];
self.title = @"登 录";
self.navigationController.navigationBar.titleTextAttributes = @{
NSFontAttributeName:[UIFont systemFontOfSize:17],
NSForegroundColorAttributeName:[UIColor whiteColor]
};
self.navigationController.navigationBar.barTintColor = [UIColor colorFromHexRGB:@"3bad6f" alpha:1.0f];
关于iOS7.0以后修改navigationBar的返回按钮的文本、颜色、自定义按钮等等
标签:
原文地址:http://www.cnblogs.com/ChouDanDan/p/5379390.html