📜  设置右栏按钮项 swift 代码示例

📅  最后修改于: 2022-03-11 15:00:59.589000             🧑  作者: Mango

代码示例1
navigationItem.leftBarButtonItem = UIBarButtonItem(barButtonSystemItem: .add, target: self, action: #selector(addTapped))
navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Add", style: .plain, target: self, action: #selector(addTapped))