We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
方案一经我测试,确实在6p以上机型会出现高度计算不准确,但是如果在方案一中更新collectionView前加上你方案2中systemLayoutSizeFittingSize方法下面的这一句”self.collectionView.frame = CGRectMake(0, 0, targetSize.width-MAGIN16*2, 44);“ 而且这里的44高度也可以为任意值不影响,这样也是可以准确的计算出高度的,也就是说点睛之笔其实就在于这一句。不过不太明白里面的机制,为啥一定要加这一句才能最后正确计算出高度
The text was updated successfully, but these errors were encountered:
No branches or pull requests
方案一经我测试,确实在6p以上机型会出现高度计算不准确,但是如果在方案一中更新collectionView前加上你方案2中systemLayoutSizeFittingSize方法下面的这一句”self.collectionView.frame = CGRectMake(0, 0, targetSize.width-MAGIN16*2, 44);“ 而且这里的44高度也可以为任意值不影响,这样也是可以准确的计算出高度的,也就是说点睛之笔其实就在于这一句。不过不太明白里面的机制,为啥一定要加这一句才能最后正确计算出高度
The text was updated successfully, but these errors were encountered: