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

有个小问题 #1

Open
melo30 opened this issue May 5, 2020 · 0 comments
Open

有个小问题 #1

melo30 opened this issue May 5, 2020 · 0 comments

Comments

@melo30
Copy link

melo30 commented May 5, 2020

方案一经我测试,确实在6p以上机型会出现高度计算不准确,但是如果在方案一中更新collectionView前加上你方案2中systemLayoutSizeFittingSize方法下面的这一句”self.collectionView.frame = CGRectMake(0, 0, targetSize.width-MAGIN16*2, 44);“ 而且这里的44高度也可以为任意值不影响,这样也是可以准确的计算出高度的,也就是说点睛之笔其实就在于这一句。不过不太明白里面的机制,为啥一定要加这一句才能最后正确计算出高度

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