Parameter | Description |
---|---|
title | The UIBarButtonItem title |
style | The style of the UIBarButtonItem |
target | The object to receive the UIBarButtonItem action |
action | The selector (method) to be performed when the UIBarButtonItem is pressed |
Referencing self.navigationItem
assumes that the UIViewController is embedded inside a UINavigationController.