How can a button be added to a navigation toolbar in an application which is navigation based?
The rootController is a tableView by default, and this is perfect. I would like to add a “share” button to the navigation controller so that I can attach it to my own method.
How is this done if the navigation bar is added in the code somewhere?
To do it in code, go to your views
viewDidLoadmethod and create aUIBarButtonItemThis code will create a button that says share like you wanted and put it on the right hand side of the navigation bar.