Latest 1.0.0
Homepage https://github.com/BigPoro/LHPopMenu
License MIT
Platforms ios 8.0
Authors

LHPopMenu

类似微信和支付宝右上角下拉的菜单封装,使用简单,欢迎star。

Github地址

效果图如下:
自己调的这个效果,真的是太他么丑了😂😂😂

LHPopMenu

自由度比较高,很多地方都可以自定义。

集成方式:

pod 'LHPopMenu'

使用方法很简单,如下:

LHPopMenuItemHandler handler = ^(NSInteger index){
NSLog(@"%ld",(long)index);
};
NSArray *arr = @[
[LHPopMenuItem menuItem:@"分享分享" image:[UIImage imageNamed:@"action_icon"] type:LHPopMenuItemTypeNormal handler:handler],
[LHPopMenuItem menuItem:@"确定分享" image:[UIImage imageNamed:@"check_icon"] type:LHPopMenuItemTypeHighlight handler:handler],
[LHPopMenuItem menuItem:@"主页分享" image:[UIImage imageNamed:@"home_icon"] type:LHPopMenuItemTypeDisabled handler:handler],
[LHPopMenuItem menuItem:@"搜索分享" image:[UIImage imageNamed:@"search_icon"] type:LHPopMenuItemTypeNormal handler:handler]];
[LHPopMenuViewConfig globalConfig].itemNormalColor = [UIColor lightGrayColor];
[LHPopMenuViewConfig globalConfig].maskColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.5f];
[LHPopMenu showMenuInView:self.view fromRect:sender.frame menuItems:arr ];

Latest podspec

{
    "name": "LHPopMenu",
    "version": "1.0.0",
    "summary": "u7c7bu4f3cu5faeu4fe1u548cu652fu4ed8u5b9du53f3u4e0au89d2u4e0bu62c9u7684u83dcu5355u5c01u88c5uff0cu4f7fu7528u7b80u5355u3002",
    "homepage": "https://github.com/BigPoro/LHPopMenu",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "iDog": "[email protected]"
    },
    "social_media_url": "",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/BigPoro/LHPopMenu.git",
        "tag": "1.0.0"
    },
    "source_files": "LHPopMenuDemo/LHPopMenu/*.{h,m}"
}

Pin It on Pinterest

Share This