I want to set the general "Button Bar" element to the right of the navigation bar, it should be displayed on all screens controlled by the navigation controller, and it will trigger the same action.
Itβs easy, for example, in the application template "Detail Wizard" there is an "addButton" to the right of the navigation bar, I also want to display it on the DetailViewController (this will not work because there is no action).
I created a subclass of UINavigationController in which I can change something like color in the navigation bar, but I cannot set Button elements. I can set toolbar elements on each ViewController screen so that I have to duplicate the action for each screen.
I also tried to subclass UINavigationBar, but I don't know if I can add a Button Bar element to it.
How to set a common bar element in the navigation bar?
Thanks in advance.
source share