这是我的场景:
我正在使用这个开源库 https://github.com/SlavaBushtruk/APSplitViewController创建一个伪 splitviewcontroller。
这是目前为止的样子
APSplitViewController 是从 tabbarcontroller 中的另一个 View 推送的。
当我推送 APSplitViewController 时,它会在其 View 的最顶部添加一个额外的导航栏,我隐藏了该导航栏,因为我的“子” View 有自己的导航栏。
我想在蓝色 View 的左侧添加一个按钮,该按钮将模拟实际的导航 Controller 后退按钮(当前处于隐藏状态)
如果我能让它看起来像后退箭头,那就太好了,如果不能,我可以只使用一个后退按钮。
如有任何帮助,我们将不胜感激。
========
好吧,我已经添加了一个像这样的按钮。
self.left.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Test" style:UIBarButtonItemStylePlain target:self action:@selector(backAction)];
现在如果我能让它看起来像后退箭头那就完美了:)
最佳答案
您可以获得看起来像后退按钮的图像。
关于ios - UIViewController 自定义后退导航按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17794587/