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

parentview.fd_collapsed=yes之后,childview还显示 #5

Open
StephenZhuang opened this issue Jun 11, 2015 · 4 comments
Open

parentview.fd_collapsed=yes之后,childview还显示 #5

StephenZhuang opened this issue Jun 11, 2015 · 4 comments

Comments

@StephenZhuang
Copy link

要自己设置hidden吗

@StephenZhuang
Copy link
Author

还有个问题是如果一个view的高度是由它内部的子view决定的,自己本身没设置高度,能够使用fd_collapsed么

@nonstriater
Copy link

我觉得这里应该是bug,还应该吧 subviews的fd_collapsed 设置为YES

@philcn
Copy link
Member

philcn commented Jul 31, 2015

collapse只是把指定的约束长度设成0。如果你针对superview的宽/高约束使用collapse,需要设置clipToBounds

@nonstriater
Copy link

@philcn YES, it worked!

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

3 participants