iOS下拉悬浮窗,有选中状态
来源:互联网 发布:北京狮岛编程下载 编辑:程序博客网 时间:2024/04/29 18:49
一句话完成调用
该API和UITableView的API是差不多的
- 快速集成
- 使用简单
- API仿UITableView的API哦
- *内存消耗超低
- 容易扩展
看看效果图
快速继承
- github
https://github.com/7General/HZDropDwonMneuList
// 添加代码self.dropMenu = [DropDownMenuList show:CGPointMake(0, 64) andHeight:44];self.dropMenu.delegate = self;self.dropMenu.dataSource = self;[self.view addSubview:self.dropMenu];
HZDropDownMenuList的代理
@protocol DropDownMenuListDataSouce <NSObject>@required// 设置显示列的内容-(NSMutableArray *)menuNumberOfRowInColumn;// 设置多少行显示-(NSInteger)menu:(DropDownMenuList *)menu numberOfRowsInColum:(NSInteger)column;// 设置显示没行的内容-(NSString *)menu:(DropDownMenuList *)menu titleForRowAtIndexPath:(HZIndexPath *)indexPath;@optional// 每行图片-(NSString *)menu:(DropDownMenuList *)menu imageNameForRowAtIndexPath:(HZIndexPath *)indexPath;@end
@protocol DropDownMenuListDelegate <NSObject>@optional// 点击每一行的效果- (void)menu:(DropDownMenuList *)segment didSelectRowAtIndexPath:(HZIndexPath *)indexPath;// 点击没一列的效果- (void)menu:(DropDownMenuList *)segment didSelectTitleAtColumn:(NSInteger)column;@end
关注洲洲哥的公众号,提高装逼技能就靠他了
0 0
- iOS下拉悬浮窗,有选中状态
- Select下拉获取选中状态
- IOS 应用悬浮窗
- RecycleView 有下拉刷新情况下实现悬浮框效果
- 【js:片断】jQuery 设置 select 下拉框的选中状态
- 重置select select2下拉框为选中状态
- iOS 默认某个cell为选中状态
- ios中UIButton选中状态切换
- iOS 设置Button的 初始选中状态
- iOS uicollectionview滚动选中状态错乱
- 回显select options 下拉内容,并有选中
- CSS悬浮下拉菜单
- iOS开发-tableView上显示悬浮按钮悬浮窗
- 简单实现标题栏悬浮状态,使用PullToRefreshListView上拉加载下拉刷新
- 选中状态
- 侧边栏(带滑动) + 桌面悬浮窗 + 下拉刷新 + Fragment
- 鼠标悬浮状态
- Android之仿IOS悬浮窗
- Common Lisp入门笔记(四)函数
- 一个简单WPF分页条控件
- ECMAScript 6 notebook
- spark flatmap
- 高斯消元法
- iOS下拉悬浮窗,有选中状态
- Android项目之简单计算器
- 语言和文字——《语文常谈》读书笔记(1)
- DOM基础
- windows下nginx安装、配置与使用
- [android] 出现 Unable to resolve target 'android-7'的解决办法
- Problem D 2016"百度之星" - 资格赛(Astar Round1)
- AS Plugin is too old
- java mail发送邮件(单发和群发)