如何设置 action backBarButtonItem 并仍然显示左箭头?
我使用了以下代码,但箭头没有显示。
但是当我使用这段代码时,动作没有起作用。
我使用了以下代码,但箭头没有显示。
var barBack = UIBarButtonItem(title: "Reset", style: UIBarButtonItemStyle.Plain, target: self, action: "reset:")
self.navigationItem.leftBarButtonItem = barBack
但是当我使用这段代码时,动作没有起作用。
self.navigationController?.navigationBar.topItem?.backBarButtonItem = barBack
谢谢