Latest 0.2.1
Homepage https://github.com/jinxiansen/JPullDownMenu
License MIT (LICENSE)
Platforms ios 8.0, requires ARC
Authors

这是一个简单的下拉菜单,使用详情见Demo。

如果觉得有用的话,给个赞呗。😂😂😂


Usage

 self.menu = [[JPullDownMenu alloc]initWithFrame:CGRectMake(0, 64,self.view.frame.size.width, 40) menuTitleArray:@[@"残剑",@"长空",@"飞雪"]];

    NSArray * regionArray [email protected][@"黄浦区",@"南市区",@"卢湾区",@"徐汇区",@"不限"];
    NSArray *[email protected][@"学龄前",@"小学",@"初中",@"高中",@"成人"];
    NSArray *[email protected][@"距离",@"价格",@"评分",@"最新",@"最热"];

    self.menu.menuDataArray = [NSMutableArray arrayWithObjects:regionArray, classTypeArray , sortRuleArray, nil];

    [self.view addSubview:self.menu];

    __weak typeof(self) _self = self;
    [self.menu setHandleSelectDataBlock:^(NSString *selectTitle, NSUInteger selectIndex, NSUInteger selectButtonTag) {

        _self.titleLabel.text = [NSString stringWithFormat:@"selectTitle = %@n selectIndex = @%lun selectButtonTag = @%lu",selectTitle,selectIndex,selectButtonTag];
    }];
}

Author

jinxiansen, email: [email protected]

License

JPullDownMenu is available under the (MIT)License.

Latest podspec

{
    "name": "JPullDownMenu",
    "version": "0.2.1",
    "summary": "This is a library of the drop-down menu (OC).",
    "homepage": "https://github.com/jinxiansen/JPullDownMenu",
    "license": "MIT (LICENSE)",
    "authors": {
        "jinxiansen": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jinxiansen/JPullDownMenu.git",
        "tag": "0.2.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "JPullDownMenuDemo/JPullDownMenu/*.{h,m}",
    "resources": "JPullDownMenuDemo/JPullDownMenu/*.{bundle,png}",
    "requires_arc": true
}

Pin It on Pinterest

Share This