ios – 后退按钮在导航栏中没有变色

ios – 后退按钮在导航栏中没有变色,第1张

概述抱歉英文不好:-( 在这里我使用 xcode 5和ios7,当在pushviewcontroller之后获取时,可以在后退按钮中改变颜色. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { ListViewController *viewList 抱歉英文不好:-(
在这里我使用 xcode 5和ios7,当在pushvIEwcontroller之后获取时,可以在后退按钮中改变颜色.

- (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];}

试试吧……快乐的代码:-)

总结

以上是内存溢出为你收集整理的ios – 后退按钮在导航栏中没有变色全部内容,希望文章能够帮你解决ios – 后退按钮在导航栏中没有变色所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1035056.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存