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

cell里的按钮点击方法都不行,这是为啥?换成系统的UICollectionViewFlowLayout就正常点击 #42

Closed
huxiaoxin opened this issue May 17, 2021 · 5 comments

Comments

@huxiaoxin
Copy link

No description provided.

@czl0325
Copy link
Owner

czl0325 commented May 17, 2021

不可能吧,你哪里写错了吧,我测试是没问题的。

@huxiaoxin
Copy link
Author

找到原因了,model计算高度的问题

@huxiaoxin
Copy link
Author

model更改cell的高度后,刷新UICollectionView为啥cell的高度 显示的还是初始化的时候那个高度啊

@czl0325
Copy link
Owner

czl0325 commented May 17, 2021

sizeForItemAtIndexPath代理里面先打印宽高出来看看

@huxiaoxin
Copy link
Author

嗯嗯 这个方法会多次调用了 模型的高度也变了

@czl0325 czl0325 closed this as completed May 21, 2021
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

2 participants