Created
August 8, 2012 09:24
-
-
Save SPopenko/3293745 to your computer and use it in GitHub Desktop.
Add company button
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
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