Skip to content

Instantly share code, notes, and snippets.

@SPopenko
Created August 8, 2012 09:24
Show Gist options
  • Save SPopenko/3293745 to your computer and use it in GitHub Desktop.
Save SPopenko/3293745 to your computer and use it in GitHub Desktop.
Add company button
AwesomeMenuItem *amButton = [[[AwesomeMenuItem alloc] initWithImage:[UIImage imageNamed:@"bg-menuitem.png"]
highlightedImage:[UIImage imageNamed:@"bg-menuitem-highlighted.png"]
ContentImage:[UIImage imageNamed:@"AM.png"]
highlightedContentImage:nil] autorelease];
[bar addButton:amButton handler:^(){
UIAlertView* alert = [[UIAlertView alloc] initWithTitle:@"About page" message:@"This is about page" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert show];
[alert release];
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment