21 Star 55 Fork 23

Mr-R-yan / RW_DropdownMenu

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

RW_DropdownMenu

Import

导入头文件DropdownMenu.h

How To Use

实现初始化

  • (id)initDropdownWithButtonTitles:(NSArray*)titles andLeftListArray:(NSArray*)leftArray andRightListArray:(NSArray *)rightArray;
  • 例如:
  • DropdownMenu *dropdown = [[DropdownMenu alloc] initDropdownWithButtonTitles:_titleArray andLeftListArray:_leftArray andRightListArray:_rightArray];
    dropdown.delegate = self; //此句的代理方法可返回选中下标值
    [self.view addSubview:dropdown.view];

Delegate

//实现代理,返回选中的下标,若左边没有列表,则返回0。ButtonIndex为打开的第几个按钮或列表下标,left为左边选中下标,right为右边选中下标

  • (void)dropdownSelectedButtonIndex:(NSString *)index LeftIndex:(NSString *)left RightIndex:(NSString *)right { NSLog(@"%s : You choice button %@, left %@ and right %@", FUNCTION, index, left, right); }

Thanks

感谢大家对我的支持,最近做了一些小更新; <br/ >2016-04-21 -- 增加返回选的第几个button(或者选中的是第几个列表);选中后button显示选中值

Demo

image

空文件

简介

自己写的一款简单的下拉二级菜单 (样子仿照大众点评)、自动记录上次选择。 使用者可以根据需要使用下拉二级菜单或一级下拉菜单 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Objective-C
1
https://gitee.com/RyanPeng/RW_DropdownMenu.git
git@gitee.com:RyanPeng/RW_DropdownMenu.git
RyanPeng
RW_DropdownMenu
RW_DropdownMenu
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891