I am trying to add a refresh button to the top bar of a navigation controller with no success.
Here is the header:
@interface PropertyViewController
Here is the solution in Swift (set options as needed):
var optionButton = UIBarButtonItem() optionButton.title = "Settings" //optionButton.action = something (put your action here) self.navigationItem.rightBarButtonItem = optionButton