Я пытаюсь изменить цвет панели навигации, но обнаружил, что это невозможно, только если навигатор является корневым.
Я пытаюсь это сделать:
self.navigationController?.navigationBar.translucent = true
self.navigationController!.navigationBar.barTintColor = UIColor.blueColor()
Все мои Viewcontrollers
связаны с навигационными контроллерами. Однако ничего не изменилось. На самом деле я пытался делать одни и те же вещи из раскадровки, но это работает, только если я нахожусь в первом навигаторе.
Я попытался прочитать все, что связано с этой проблемой, но ничего не нашел
Я мог бы добавить любой элемент в панель навигации, например,
let HomeImage = UIImage(named: "home")!
let Home : UIBarButtonItem = UIBarButtonItem(image: HomeImage, style: .Plain, target: self, action: "home:")
navigationItem.rightBarButtonItem = Home