ZHFilterMenuView
ZHFilterMenuView copied to clipboard
一款类似贝壳找房的通用房屋筛选控件!提供新房、二手房、租房的完整筛选功能实现!当然不仅仅局限用于房屋筛选,也可用于其他类型的筛选!
ZHFilterMenuView -> lineView的frame 我遇到的问题: 通常menuView 在导航栏下,lineView 的y坐标CGRectGetMaxY(self.frame) - 0.5,没有问题。 当外部使用(FilterViewController文件93行)的时候传入的y != 0 ,例如而是根据需求在下移动50,此时lineView的y坐标的值就是50-0.5,而lineView的父视图是self (MenuView),此时就无法达到想要的lineView在紧跟在bar的下面,效果成了距离bar下面好远。。。 我的方案:CGRectGetHeight(self.frame) - 0.5 代码位置:ZHFilterMenuView文件963行
写的很好,不能用pod管理
RT. 选中之后 在选择按钮上显示选中哪一项
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ }这个方法 当confirmType == ZHFilterMenuConfirmTypeSpeedConfirm 双列表模式下 如果选栏目会直接弹回没效果 需要加上downType == ZHFilterMenuDownTypeTwoLists类型的判断 去做不同处理
退出前,好像是没有关闭下拉的菜单,然后,回到前一个页面,请直接覆盖在前一个页面了。
目前项目里有这种场景用到了,可跟随区头移动,并且可随时下拉菜单
demo运行就报错了!if ([[filterModel.itemArr firstObject] selected]) { 报错信息 Multiple methods named 'selected' found with mismatched result, parameter type or attributes
Multiple methods named 'selected' found with mismatched result, parameter type or attributes