backBarButtonItem

backBarButtonItem:Bar button item to use for the back button in the child navigation item.
就是设置子控制器的返回按钮的标题。

self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"首页" style:UIBarButtonItemStyleDone target:nil action:nil];
        
ControllerA *vcA = [ControllerA new];
[self.navigationController pushViewController:vcA animated:YES];

你可能感兴趣的:(backBarButtonItem)