Skip to content

Instantly share code, notes, and snippets.

@zeedark
Created January 27, 2012 18:24
Show Gist options
  • Save zeedark/1690160 to your computer and use it in GitHub Desktop.
Save zeedark/1690160 to your computer and use it in GitHub Desktop.
Display a right bar Close button item
// Display a right bar Close button item
UIBarButtonItem *bbi = [[UIBarButtonItem alloc] initWithTitle:@"Close" style:UIBarButtonItemStyleBordered target:self action:@selector(doClose:)];
self.navigationItem.rightBarButtonItem = bbi;
[bbi release];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment