[iOS] Added exit button in catalog

https://jira.mail.ru/browse/MAPSME-13556
This commit is contained in:
Alexander Boriskov 2020-04-01 12:22:26 +03:00 committed by Vladimir Byko-Ianko
parent e812fd3c12
commit 2c44f2a701

View file

@ -128,11 +128,14 @@ final class CatalogWebViewController: WebViewController {
self.view.styleName = "Background"
updateProgress()
let backButton = UIBarButtonItem(image: UIImage(named: "ic_nav_bar_back"),
style: .plain,
target: self,
action: #selector(onBack))
navigationItem.leftBarButtonItem = backButton
navigationItem.leftBarButtonItem = UIBarButtonItem(image: UIImage(named: "ic_nav_bar_back"),
style: .plain,
target: self,
action: #selector(onBack))
navigationItem.rightBarButtonItem = UIBarButtonItem(title: L("core_exit"),
style: .plain,
target: self,
action: #selector(goBack))
}
override func viewDidAppear(_ animated: Bool) {