Latest 0.1.1
Homepage https://github.com/drinking/DKFlexibleMenu
License MIT
Platforms ios 7.0, requires ARC
Authors

Inspired by a Menu Concept on dribble.

Screenshot

screenshot1

Description

A flexible menu which displays several hexagon menu items around the touch point.It will calculate whether each menu item is visible and show them at the proper place.

Usage

Just as other popup menu, you just need setup menu items and show it up.

    NSMutableArray *items = [[NSMutableArray alloc] initWithCapacity:10];

    for (int i = 0; i < 18; ++i) {
        DKFlexibleMenuItem *item = [[DKFlexibleMenuItem alloc] initWithTitle:@"Copy"
                                                                       Image:[UIImage imageNamed:@"copy_24"]];
        item.backgroundColor = [self randomColor];
        [items addObject:item];
    }

    DKFlexibleMenu *menu = [[DKFlexibleMenu alloc] initWithFrame:view.bounds MenuItems:items];
    menu.menuItemSelectedBlock = ^(DKFlexibleMenuItem *item) {
        self.menuStyleSwith = YES;
    };

    [menu showInView:view AtPoint:point];

Installation

CocoaPods

DKFlexibleMenu is available through CocoaPods.

To install add the following line to your Podfile:

pod 'DKFlexibleMenu'

Author

drinking, [email protected]

License

DKFlexibleMenu is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "DKFlexibleMenu",
    "version": "0.1.1",
    "summary": "A hexagon popup menu showing around touch point.",
    "description": "A flexible menu which displays several hexagon menu items around the touch point.nIt will calculate whether each menu item is visible and show them at the proper place.",
    "homepage": "https://github.com/drinking/DKFlexibleMenu",
    "license": "MIT",
    "authors": {
        "drinking": "[email protected]"
    },
    "source": {
        "git": "https://github.com/drinking/DKFlexibleMenu.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "DKFlexibleMenu": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This