使用下面的代码,我正在打开一个信息屏幕。一切正常,屏幕打开,标题显示为我想要的,但是我无法更改默认的后退按钮标题
我应该如何在 xcode5 中做到这一点
谢谢
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([segue.identifier isEqualToString:@"infoRegularSegue"])
{
FirstViewController *destViewController = segue.destinationViewController;
destViewController.title = NSLocalizedString(@"Information", title of information view);
//this code below does not work
destViewController.navigationItem.backBarButtonItem.title = @"test";
//ive also tried leftbuttonitem
}
}