Latest0.0.1
Homepagehttps://github.com/leonyue/LYPopupMenu
LicenseMIT
Platformsios 6.0, requires ARC
Authors

Based on QBPopupMenu

Add showSeperator property

Add auto height

Add image top title bottom menuItem

LYPopupMenu

CocoaPods

pod ‘LYPopupMenu’, ‘~> 0.0.1’

Demo codes

LYPopupMenuItem *item = [LYPopupMenuItem itemWithTitle:@"标准地图" image:[UIImage imageNamed:@"standard_map"] target:self action:@selector(action:)];
    LYPopupMenuItem *item2 = [LYPopupMenuItem itemWithTitle:@"卫星地图" image:[UIImage imageNamed:@"satellite_map"] target:self action:@selector(action:)];
     LYPopupMenuItem *item3 = [LYPopupMenuItem itemWithTitle:@"复合地图" image:[UIImage imageNamed:@"compound_map"] target:self action:@selector(action:)];
    LYPopupVerticalMenu *popupMenu = [[LYPopupVerticalMenu alloc] initWithItems:@[item, item2, item3]];
    popupMenu.showSeparator = NO;
    popupMenu.cornerRadius = 0.f;
    [popupMenu showInView:self.view targetRect:sender.frame animated:YES];

Latest podspec

{
    "name": "LYPopupMenu",
    "version": "0.0.1",
    "summary": "An iOS popup menu",
    "description": "An iOS popup menu",
    "homepage": "https://github.com/leonyue/LYPopupMenu",
    "license": {
        "type": "MIT",
        "file": "FILE_LICENSE"
    },
    "authors": {
        "leonyue": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/leonyue/LYPopupMenu.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "LYPopupMenu",
        "LYPopupMenu/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This