Assuming this is in the view controller, you can do something like:
- (void)viewDidLoad { UIBarButtonItem *actionButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(methodThatShowsSheet)]; self.navigationItem.rightBarButtonItem = actionButton; [actionButton release]; }
(Forgive the weird indentation to fit a reasonable width (I usually just let Xcode wrap everything in a row)).
See Nick Weiss answer on how to implement methodThatShowsSheet .
source share