如何对NavigationController的返回按钮自定义
1个回答
展开全部
1: navigationController 的返回按钮自定义
SecondViewController *secondVC = [SecondViewController new];
//更改UINavigationController的返回按钮
UIBarButtonItem *backButton = [[UIBarButtonItem alloc]init];
backButton.title = @"返回";
[self.navigationItem setBackBarButtonItem:backButton];
[self.navigationController pushViewController:secondVC animated:YES];
SecondViewController *secondVC = [SecondViewController new];
//更改UINavigationController的返回按钮
UIBarButtonItem *backButton = [[UIBarButtonItem alloc]init];
backButton.title = @"返回";
[self.navigationItem setBackBarButtonItem:backButton];
[self.navigationController pushViewController:secondVC animated:YES];
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询