在这里我使用 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 – 后退按钮在导航栏中没有变色所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)