我想从后退按钮中删除文本,但我想保留图标.我试过了 let backButton = UIBarButtonItem(title: "", style: UIBarButtonItemStyle.Plain, target: navigationController, action: nil)navigationItem.leftBarButtonItem = backButton 但
let backButton = UIBarButtonItem(title: "", style: UIBarButtonItemStyle.Plain, target: navigationController, action: nil) navigationItem.leftBarButtonItem = backButton
但是,这会完全删除文本和图标.
@ rmd2的方法几乎是正确的,但您应该选择后退按钮指向的控制器的导航栏,并在后退按钮字段中键入“”.