ios - 更改导航项后退按钮标题

标签 ios swift uinavigationbar

如何更改< Wish list按钮上有不同的东西? enter image description here

最佳答案

你可以使用下面的代码,如果有任何错误请告诉我

-(void)viewWillAppear:(BOOL)动画{ [ super viewWillAppear:YES];

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

self.navigationItem.leftBarButtonItem = flipButton;

} -(void)翻转 View { }

关于ios - 更改导航项后退按钮标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34492785/

相关文章:

ios - 从音频的波形数据中检测说话人的性别

ios - QUickblox 聊天中未验证密码

Swift 数组元素到变量

arrays - 迭代时从数组中删除项目的安全方法?

ios - 如何使用动画在 UINavigationBar 上切换 View ?

iphone - 我可以更改 UINavigationController viewControllers 堆栈吗?

ios - 使用自定义图像作为 UINavigationController 导航栏的背景

ios - 一段时间后,从Super Layer中删除会使应用程序崩溃

ios - 界面生成器中的选项卡栏图标太大

ios - 删除 UIActivityViewController 中的换行符