Popover Menu for iOS

Popover Menu for iOS

Released 3 years ago , Last update 3 years ago

A great looking alternative to UIActionSheet. Use this popover menu to show a pixel perfect grid of buttons.

Popover Menu is a custom component that you can use to show a pixel perfect popover menu containing a grid of buttons. This component is specially designed to be used with UIBarButtonItem buttons.

The background of the popup is completely drawn using Core Graphics. Thanks to Core Graphics the borders and shadows are pixel perfect and just gorgeous. Since no images are used for the background you can easily modify the look of the popover menu by playing with the values of the constants defined in the class YLPopoverMenu.m.

You can customize the following properties of Popover Menu:

  • background color
  • shadow color
  • shadow offset
  • shadow blur
  • border radius

Popover Menu supports landscape and portrait orientations!

4.7
  • 5 16
  • 4 2
  • 3 0
  • 2 0
  • 1 1
19 Reviews Read Reviews

Pricing

FREE

Application License

  • Perpetual license

  • 1 application

  • Can distribute binary products only

  • Commercial use

How to Use

1. Create a YLPopoverMenu Object.

NSMutableArray *items = [NSMutableArray array];
[items addObject:[YLMenuItem menuItemWithTitle:@"Home" icon:[UIImage imageNamed:@"hi.png"] pressedIcon:[UIImage imageNamed:@"hpi.png"]]];
[items addObject:[YLMenuItem menuItemWithTitle:@"Messages" icon:[UIImage imageNamed:@"mi.png"] pressedIcon:[UIImage imageNamed:@"mpi.png"]]];
[items addObject:[YLMenuItem menuItemWithTitle:@"Photos" icon:[UIImage imageNamed:@"pi.png"] pressedIcon:[UIImage imageNamed:@"ppi.png"]]];

YLPopoverMenu* menu = [YLPopoverMenu popoverMenuWithItems:items target:self];
[menu setDelegate:self];
[menu presentPopoverFromBarButtonItem:button animated:YES];

2. Implement the delegate method.

- (void)popoverMenu:(YLPopoverMenu *)menu didSelectItem:(int)item {
    NSLog(@"You tapped on item %@", [menu buttonTitleAtIndex:item]);
}

3. Or attach individual selectors to menu items.

[YLMenuItem menuItemWithTitle:@"Home" icon:[UIImage imageNamed:@"hi.png"] pressedIcon:[UIImage imageNamed:@"hpi.png" selector:@selector(homeTapped)]

// YLPopoverMenu will call this method on the main thread
- (void)homeTapped {
    NSLog(@"You tapped on the Home button.");
}
License » Application License Download

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.


Or enter your name and Email
  • M Mahendra 8 months ago
    Just wondering... does this work with Xcode 5 & iOS7?
    • Kemal Taskin Publisher 8 months ago
      Hi Mahendra, Yes, the codebase will work with Xcode 5 but iOS 7 is not supported.
  • B Brad 2 years ago
    Hello you have done great work over here, its very helpfull, bt somewhere i got stucked.. can i have the source code of this project.. i will be very thankfull to you if you will provide me a source code....
  • SW SANJAY WAZA License holderSingle App License
    Purchased on May 22, 2013
    2 years ago
    How can I display the popover in middle of the screen by changing X and Y positions ?
    • Kemal Taskin Publisher 2 years ago
      Hi Sanjay, Popover Menu is designed to be used with UIBarButtonItems in toolbars or navigation bars. The x and y positions are automatically calculated and can't be changed.