对不起,英语不好:-(
这里我使用的是xcode 5和ios7,在pushviewcontroller后得到ntnt可以改变后退按钮的颜色。
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
ListViewController *viewList = [[ListViewController alloc] initWithNibName:@“ListViewController” bundle:nil];
[self.navigationController pushViewController: viewList animated:YES];
}
用户按下一个单元格,就会出现ListViewController。在导航栏中,右键栏按钮显示为粉红色。但没有在后退栏按钮中更改颜色。请查看屏幕快照,我已在下面附加了链接。
我们可以更改导航栏中的后退按钮吗?还是应在“后退”按钮中添加图像?
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
ListViewController *viewList = [[ListViewController alloc] initWithNibName:@“ListViewController” bundle:nil];
self.navigationController.navigationBar.tintColor=[UIColor readcolor]; //set color as you want…..
[self.navigationController pushViewController: viewList animated:YES];
}
尝试一下...快乐代码:-)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句