Latest 1.0.1
Homepage https://github.com/ccworld1000/HSArrowMenu
License MIT
Platforms ios 8.0, requires ARC
Authors

HSArrowMenu : A popup menu.

some adjust for new https://github.com/ccworld1000/HSArrowMenu

Bug

Email : [email protected]

Podfile

pod 'HSArrowMenu'

Usage

#import <HSMenu.h>

or

#import "HSMenu.h"
- (void) pushMenuItem:(HSArrowMenuItem *) item
{
    NSLog(@"CC tag : %ld", item.tag);
}

- (IBAction)showMenu:(UIButton *) b {
    NSMutableArray *menuItems = [NSMutableArray arrayWithCapacity:0];
    NSArray *menuItemsArray = @[@"CC 1", @"CC 2", @"CC 3", @"CC 4", @"CC 5", @"CC 6"];
    for (NSString *title in menuItemsArray) {
        HSArrowMenuItem *item = [HSArrowMenuItem menuItem: title image: [UIImage imageNamed:@"Touch"] target: self action:@selector(pushMenuItem:)];
        item.alignment = NSTextAlignmentCenter;
        item.foreColor = [UIColor blueColor];
        [menuItems addObject: item];

    }

    HSArrowMenuConfig o = { 9,
        7,
        9,
        25,
        6.5,
        true,
        false,
        true,
        false,
        {0, 0, 0},
        {1,1,1}
    };

    [HSMenu showMenuInView:self.view fromRect:b.frame menuItems:menuItems withOptions:o];

    NSLog(@"b : %@", b.titleLabel.text);
}

Reference

reference 1 https://github.com/kolyvan/kxmenu

reference 2 https://github.com/zpz1237/NirKxMenu

ScreenShots

Menu1

Menu1 Screenshot

Menu2

Menu2 Screenshot

Menu3

Menu3 Screenshot

Latest podspec

{
    "name": "HSArrowMenu",
    "version": "1.0.1",
    "summary": "HSArrowMenu : A popup menu.",
    "description": "HSArrowMenu : A popup menu. some for custom",
    "homepage": "https://github.com/ccworld1000/HSArrowMenu",
    "screenshots": [
        "https://github.com/ccworld1000/HSArrowMenu/blob/master/Documentation/menu1.gif",
        "https://github.com/ccworld1000/HSArrowMenu/blob/master/Documentation/menu2.gif",
        "https://github.com/ccworld1000/HSArrowMenu/blob/master/Documentation/menu3.gif"
    ],
    "license": {
        "type": "MIT",
        "file": "HSArrowMenu.LICENSE.txt"
    },
    "authors": {
        "cc": "[email protected]"
    },
    "social_media_url": "https://github.com/ccworld1000",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/ccworld1000/HSArrowMenu.git",
        "tag": "1.0.1"
    },
    "source_files": [
        "HSArrowMenu",
        "HSArrowMenu/**/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude",
    "resources": "HSArrowMenu.LICENSE.txt",
    "requires_arc": true
}

Pin It on Pinterest

Share This