Я хочу удалить кнопку «Назад», которая возвращает меня к предыдущему ВК. Решение заключается в смене rootVC или?
У меня есть LoginVC и HomeVC. Если пользователь успешно входит в систему, у него не должно быть возможности вернуться на экран входа в систему, потому что это не имеет смысла.
ЛогинВК:
let mainStoryboard = UIStoryboard(name: "Main", bundle: Bundle.main)
let homeVC = (mainStoryboard.instantiateViewController(withIdentifier: "HomeViewController") as! HomeViewController)
self.navigationController?.pushViewController(homeVC , animated: true)
Я думаю, что речь идет об изменении rootVC, а не об этом (как я нашел в Stackoverflow):
self.navigationItem.rightBarButtonItem.hidden = ДА