Looking for ios Answers? Try Ask4KnowledgeBase
Looking for ios Keywords? Try Ask4Keywords

iOSUIBarButtonItem


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.