更改导航项目后退按钮标题

时间:2015-12-28 11:35:54

标签: ios swift uinavigationbar

如何在不同的地方更改< Wish list按钮? enter image description here

2 个答案:

答案 0 :(得分:0)

如果有任何错误,您可以使用以下代码告诉我

- (无效)viewWillAppear中:(BOOL)动画{     [super viewWillAppear:YES];

Set As Start Page

} - (无效)flipView { }

答案 1 :(得分:0)

试试这个,

let newBackButton = UIBarButtonItem(title: "SomeOtherTitle", style: UIBarButtonItemStyle.Bordered, target: self, action: "back:")
self.navigationItem.leftBarButtonItem = newBackButton;

func back(sender: UIBarButtonItem) {
    self.popViewControllerAnimated(true, completion: nil)
}