JPullDownMenu 0.2.1

JPullDownMenu 0.2.1

测试已测试
语言语言 Objective-CObjective C
许可证 MIT
发布最新发布2016 年 5 月

jinxiansen 维护.



  • 作者
  • jinxiansen

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

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


用法

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

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

    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 = @%lu\n selectButtonTag = @%lu",selectTitle,selectIndex,selectButtonTag];
    }];
}

作者

jinxiansen,邮箱:[email protected]

许可证

JPullDownMenu 可在 (MIT) 许可下使用。