- (IBAction)stackMenu:(id)sender
{
UIButton *button = (UIButton *)sender;
[PCStackMenu showStackMenuWithTitles:[NSArray arrayWithObjects:@"Setting", @"Search", @"Twitter", @"Message", @"Share", @"More ...", nil]
withImages:[NSArray arrayWithObjects:[UIImage imageNamed:@"[email protected]"], [UIImage imageNamed:@"[email protected]"], [UIImage imageNamed:@"[email protected]"], [UIImage imageNamed:@"[email protected]"], [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);
}];
}