Single App License


  • Perpetual license (does not expire)
  • 1 application
  • Can distribute binary products only
  • Commercial use allowed
$49.99 Read License

Distributor License


  • Perpetual license (does not expire)
  • Unlimited projects
  • Can distribute code and binary products
  • Commercial use allowed
  • 6 months support
$199.99 Read License

14 Day money-back guarantee

Full refund within 14 days of purchase date.

You need to log-in or create an account
  • Create an account
  • Log-in

Please use your real name.

Activation link will be sent to this address.

Minimum 8 characters

Enter your password again

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

(18 ratings)

Popover Menu for iOS

Popover Menu for iOS
Developed by Kemal Taskin, Released Oct 28, 2011

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

Objective-C

Tags: ios , menu , popover , sheet

Popup over menu for iOS

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!

Popup over menu demo

Back to top

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.");
}
View all 16 reviews »

User Reviews

  • Claudio Casagrande 5 months ago
    Great
    Flag
    Was this helpful? Yes No
  • Markelsoft 5 months ago
    Very nice and easy to use. Could not be happier.
    Flag
    Was this helpful? Yes No
  • Jason Pan 9 months ago
    A very well-made and useful component. I've been using this in many of my apps. Replicates Apple's version of it for iPad very nicely.
    Flag
    Was this helpful? Yes No
Read all 44 comments »

Questions & Comments


Or enter your name and Email
  • Brad 3 days 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....
  • SANJAY WAZA License holderSingle App License 4 weeks ago
    How can I display the popover in middle of the screen by changing X and Y positions ?
    • Kemal Taskin Developer 4 weeks 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.
  • Philipp 2 months ago
    Hi Kemal,
    The popover menu looks quite interesting.
    Is it possible to display the menu without being connected to the button you have to press to show the menu? Can I display the menu wherever I want? Thank you. Have a nice day.
    • Kemal Taskin Developer 2 months ago
      Hi Philipp,

      No, Popover Menu is designed to be shown from UIBarButtonItems in UINavigationBar or UIToolbar. So you can't show it for example in the middle of the screen.
You must be logged-in to vote. Log-in to your account or register now.