- (IBAction)stackMenu:(id)sender
{
UIButton *button = (UIButton *)sender;
[PCStackMenu showStackMenuWithTitles:[NSArray arrayWithObjects:@"Setting", @"Search", @"Twitter", @"Message", @"Share", @"More ...", nil]
withImages:[NSArray arrayWithObjects:[UIImage imageNamed:@"gear@2x.png"], [UIImage imageNamed:@"magnifier@2x.png"], [UIImage imageNamed:@"twitter@2x.png"], [UIImage imageNamed:@"speech@2x.png"], [UIImage imageNamed:@"actions@2x"], nil]
atStartPoint:CGPointMake(button.frame.origin.x + button.frame.size.width, button.frame.origin.y)
inView:self.view
itemHeight:40
menuDirection:PCStackMenuDirectionClockWiseUp
onSelectMenu:^(NSInteger selectedMenuIndex) {
NSLog(@"menu index : %d", selectedMenuIndex);
}];
}
istsest/StackMenu
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Stack Menu looks like OS X
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published