Created
January 27, 2012 18:11
-
-
Save zeedark/1690095 to your computer and use it in GitHub Desktop.
Displaying a right bar info button item
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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