• Stars
    star
    104
  • Rank 330,604 (Top 7 %)
  • Language
    Objective-C
  • Created over 11 years ago
  • Updated almost 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Stack Menu looks like OS X

Stack Menu looks like Mac OS X.

Sample Video

Alt text


- (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);
										 }];
}