Latest 1.0.1
License MIT
Platforms ios 7.0, requires ARC

An Android inspired options menu for iOS.




Using CocoaPods:

pod 'DHOptionsMenu', '~> 1.0'

Manual installation

Simple copy the files to a folder named "DHOptionsMenu" in your project.

How to use

Import DHOptionsMenu

#import "DHOptionsMenu.h"

Implement DHOptionsMenuDelegate

@interface ViewController : UIViewController<DHOptionsMenuDelegate>
#pragma mark - DHOptionsMenuDelegate 

- (void)selectedMenuItem:(DHOptionsMenuItem *)item { }

- (void)menuDidHide { }

Create menu items

[[DHOptionsMenuItem alloc] initWithText:@"Text"
                            andItemSize:CGSizeMake(200, 40)
                                andFont:[UIFont fontWithName:@"System" size:10]
                           andTextColor:[UIColor blackColor]
                andHighlightedTextColor:[UIColor blackColor]
                     andBackgroundColor:[UIColor whiteColor]
          andHighlightedBackgroundColor:[UIColor whiteColor]];

Create menu

[[DHOptionsMenu alloc] initWithItems:menuItems
                 andCallingComponent:button // The UIView that triggered showing the menu

Show menu

[menu showInView:self.view];

Hide menu

[menu hide];

Demo project

Please use the Demo project to play with the code yourself.


  • DHOptionsMenuAlignLeft: Aligns menu items with the left side of the view that triggered the menu
  • DHOptionsMenuAlignRight: Aligns menu items with the right side of the view that triggered the menu
  • DHOptionsMenuAlignCenter: Aligns menu items with the center of the view that triggered the menu

Further customization

DHOptionsMenuItem are an extension of UILabel and can be customized in a similar way.

  • Multiple lines.
  • Text alignment.
  • Truncation.


Please feel free to send me any feedback or ideas you might have.

Latest podspec

    "name": "DHOptionsMenu",
    "version": "1.0.1",
    "platforms": {
        "ios": "7.0"
    "summary": "An Android inspired options menu for iOS.",
    "description": "A dropdown options menu that can be called from any UIView component.",
    "homepage": "",
    "screenshots": "",
    "license": "MIT",
    "authors": {
        "Derk Humblet": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.0.1"
    "source_files": [
    "requires_arc": true

Pin It on Pinterest

Share This