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

滚动Tableview自动,cycleview会自动滚回第一张图片 #24

Open
trylee opened this issue Feb 25, 2019 · 1 comment
Open

滚动Tableview自动,cycleview会自动滚回第一张图片 #24

trylee opened this issue Feb 25, 2019 · 1 comment

Comments

@trylee
Copy link

trylee commented Feb 25, 2019

将ZYCycleview设置为tableview的Headerview时,如果tableview下拉时,即tableview的contentoffset为负值时,ZYCycleview会自动滚回第一张图片,是不是scrollview的代理事件冲突了

@MQZHot
Copy link
Owner

MQZHot commented Feb 25, 2019

设置图片的时候有这么一句代码collectionView.setContentOffset(.zero, animated: false),注释掉试一下

在这个方法里面func setResource(_ titlesGroup: Array<String?>?, attributedTitlesGroup: [NSAttributedString?]?)

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