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

Ios 更改导航项后退按钮标题,ios,swift,uinavigationbar,Ios,Swift,Uinavigationbar,如何更改不同内容上的

如何更改不同内容上的
按钮?

如果出现任何错误,您可以使用以下代码,然后告诉我

-(无效)视图将显示:(BOOL)动画{ [超级视图将显示:是]

UIBarButtonItem *flipButton = [[UIBarButtonItem alloc]
                               initWithTitle:@"Pending"
                               style:UIBarButtonItemStyleBordered
                               target:self
                               action:@selector(flipView)];

self.navigationItem.leftBarButtonItem = flipButton;
} -(无效)flipView { }试试这个

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)
}

你想改变什么?您可以在故事板上设置它可能与Check this UIBarButtonItem*backItem=[[UIBarButtonItem alloc]initWithTitle:@“Custom”的重复项样式:UIBarButtonimStyleBordedTarget:nil action:nil];[self.navigationItem setBackBarButtonItem:backItem];我只想更改标题这是不可能的故事板吗?不,这是工作在故事板我是尝试在我的应用程序早期