我必须将当前位置字符串设置为右键栏
var locationStr = String()
override func viewDidLoad()
{
super.viewDidLoad()
let newBackButton = UIBarButtonItem(title: locationStr , style: UIBarButtonItem.Style.plain, target: self, action: nil)
self.navigationItem.rightBarButtonItem = newBackButton
}
但是没有显示条形按钮标题