Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FilterViewController文件93行CGRectGetMaxY(self.frame) - 0.5 #13

Open
wangjie0223 opened this issue Sep 10, 2021 · 0 comments
Open

FilterViewController文件93行CGRectGetMaxY(self.frame) - 0.5 #13

wangjie0223 opened this issue Sep 10, 2021 · 0 comments

Comments

@wangjie0223
Copy link

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行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant