Stats

85 Contributors: 4 Monday, August 1, 2016
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial: riptutorial@gmail.com
Roadmap: roadmap

UIBarButtonItem

Parameters

ParameterDescription
titleThe UIBarButtonItem title
styleThe style of the UIBarButtonItem
targetThe object to receive the UIBarButtonItem action
actionThe selector (method) to be performed when the UIBarButtonItem is pressed

Remarks

Referencing self.navigationItem assumes that the UIViewController is embedded inside a UINavigationController.

Related Examples