Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Создание кнопок справа и слева в NavigatorBar.
// Кнопка слева
navigationItem.leftBarButtonItem = UIBarButtonItem(title: "Название кнопки", style: .plain, target: self, action: #selector(Функция))
// Кнопки справа
navigationItem.rightBarButtonItems = [
UIBarButtonItem(title: "Название кнопки", style: .plain, target: self, action: #selector(Функция)),
UIBarButtonItem(title: "Название кнопки", style: .plain, target: self, action: #selector(Функция))
]
// Действия при нажатии на кнопку
@objc fileprivate func Функиця() {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.