A -> B,大概有2種方法: spa
1)在push的時候,在A中添加代碼: code
UIBarButtonItem *backItem = [[UIBarButtonItem alloc] init]; backItem.title = @"你的文字"; self.navigationItem.backBarButtonItem = backItem;
UIBarButtonItem *item = (UIBarButtonItem *)self.navigationController.navigationBar.topItem; item.title = @"你的文字";