将标题文本设置为空字符串.
navigationItem.backBarButtonItem = UIBarButtonItem(title: "", style: .Plain, target: nil, action: nil)
Run Code Online (Sandbox Code Playgroud)
编辑: 根据下面的评论,只有在您使用其中的按钮切换到视图控制器之前设置后退按钮时,此功能才有效.
| 归档时间: |
|
| 查看次数: |
3184 次 |
| 最近记录: |