Skip to content

Instantly share code, notes, and snippets.

@zeedark
Created January 27, 2012 18:11
Show Gist options
  • Save zeedark/1690095 to your computer and use it in GitHub Desktop.
Save zeedark/1690095 to your computer and use it in GitHub Desktop.
Displaying a right bar info button item
// Displaying a right bar info button item
UIButton *btn = [UIButton buttonWithType:UIButtonTypeInfoDark];
[btn addTarget:self action:@selector(doSomeAction:) forControlEvents:UIControlEventTouchUpInside];
UIBarButtonItem *bbi = [[UIBarButtonItem alloc] initWithCustomView:btn];
self.navigationItem.rightBarButtonItem = bbi;
[bbi release];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment