WMZDropDownMenu
WMZDropDownMenu copied to clipboard
🌹一个能几乎实现所有App各种类型筛选菜单的控件,可悬浮,目前已实现闲鱼/美团/Boss直聘/京东/饿了么/淘宝/拼多多/赶集网/美图外卖等等的筛选菜单,可以自由调用代理实现自己想组装的筛选功能和UI,且控件的生命周期自...
筛选框
筛选框整体的高度宽度支持自定义吗?显示加载的父类能自定义吗?
宽度变短
更新数据调用updateUI,使得titlescrollview的宽度变短
顶部只有2个时,点击后使用MenuShowAnimalPop出现的菜单的位置就不准确了。 
有这么一个场景,我的列表数据是动态的,我想处理好数据之后然后传入数据源,我想默认选中某一个,那这个默认选中的项,弹出列表时同样有选中标识。动态数据,好像没办法传入字典isselected,而且我这边尝试手写数据 [[WMZMenuTitleKey.normal: "全部", "isselected": true], "更多"] 也没生效... func titleArr(in menu: WMZDropDownMenu) -> [Any] { func menu(_ menu: WMZDropDownMenu, dataForRowAt dropIndexPath: WMZDropIndexPath) -> [Any] { 2个方法都不生效
希望实现在一个section中row=0时,展示MenuUITableView,row=1时,展示MenuUICollectionView,但看到代理方式是不支持的,希望后续版本能够支持这个能力,谢谢!!!! /// 返回WMZDropIndexPath每行 每列的UI样式 默认MenuUITableView /// 注:设置了dropIndexPath.section 设置了 MenuUITableView 那么row则全部为MenuUITableView 保持统一风格 - (MenuUIStyle)menu:(WMZDropDownMenu *)menu uiStyleForRowIndexPath:(WMZDropIndexPath*)dropIndexPath;
代码位置:WMZDropDownMenu 文件, - (void)judgeBtnTitle:(WMZDropMenuBtn*)sender 方法,第431 行,有可能出现数组越界的崩溃 我在如下判断里面加了` self.titleBtnArr.count>self.lastSelectIndex`的判断 ``` if (!self.close&& self.lastSelectIndex >= 0 && self.titleBtnArr.count>self.lastSelectIndex) { WMZDropMenuBtn *lastBtn = self.titleBtnArr[self.lastSelectIndex]; [self dataChangeActionSection:[self getTitleFirstDropWthTitleBtn:lastBtn].section WithKey:nil]; } ```
如何动态更改标题的内容,比如下图,点击第一个 section 里面的某个选项,隐藏销量标题  可能是我不会使用的关系,目前我就找到下面三个方法,似乎都无法做到上面的效果 ``` /// 更新全局位置某个数据源的数据 可更换选中状态 显示文字等。。。 根据WMZDropTree 对应属性改变 - (BOOL)updateDataConfig:(NSDictionary*)changeData AtDropIndexPathSection:(NSInteger)section AtDropIndexPathRow:(NSInteger)row AtIndexPathRow:(NSInteger)indexPathRow; /// 更新所有UI和数据 - (void)updateUI; /// 重置所有数据 恢复原来 - (void)resetAll; ```
我感觉通过`getCurrentVC`方法,获取到的Controller 不一定是菜单所在的 Controller,也许是我用错了,希望作者能提出指导 代码位置:WMZDropDownMenu.m 文件的 menuTitle 方法里面,232 行 ``` if([[WMZDropMenuTool getCurrentVC] respondsToSelector:@selector(viewWillDisappear:)] || [[WMZDropMenuTool getCurrentVC] respondsToSelector:@selector(viewDidDisappear:)]){ ///hook监听当前控制器消失 @MenuWeakSelf(self); [[WMZDropMenuTool getCurrentVC] aspect_hookSelector:@selector(viewWillDisappear:) withOptions:AspectOptionAutomaticRemoval usingBlock:^(id aspectInfo){ @MenuStrongSelf(self); if(!self.close){ self.hook = YES; [self...
右侧弹出筛选条件视图后,能在弹出的筛选视图上增加、删除筛选条件项吗?