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会位置会偏移的bug #2

Open
tyz-coder opened this issue Aug 23, 2019 · 8 comments
Open

页面切换,cell会位置会偏移的bug #2

tyz-coder opened this issue Aug 23, 2019 · 8 comments

Comments

@tyz-coder
Copy link

当页面Push跳转,再回来的时候cell会自动滚动一定的距离,请问这是怎么造成的,能解决一下吗

@bestDew
Copy link
Owner

bestDew commented Aug 23, 2019

当页面Push跳转,再回来的时候cell会自动滚动一定的距离,请问这是怎么造成的,能解决一下吗

当界面跳转后,轮播图内部计时器,并未停止,所以滚动是正常的

@tyz-coder
Copy link
Author

当页面推跳转,再回来的时候细胞会自动滚动一定的距离,请问这是怎么造成的,能解决一下吗

当界面跳转后,轮播图内部计时器,并未停止,所以滚动是正常的

image
我设置了不自动滚动哦

@tyz-coder
Copy link
Author

adjustWhenViewWillAppear 这个方法我没有调用,用了这个好像可以了,但是我看了实现方法,感觉是强行做了设置,这样会不会不太好?等于是往前滑了强行又拉回来

@sp55
Copy link

sp55 commented Nov 8, 2019

@tyzChar @bestDew 我也碰到了,这个问题解决了吗

@bestDew
Copy link
Owner

bestDew commented Nov 9, 2019

@tyzChar @bestDew 我也碰到了,这个问题解决了吗

在轮播图所在控制器的 viewWillAppear 中调用一下 这个方法:adjustWhenViewWillAppear

@sp55
Copy link

sp55 commented Nov 9, 2019

问题解决了,但是怎么感觉这么做怪怪的😁

2 similar comments
@sp55
Copy link

sp55 commented Nov 9, 2019

问题解决了,但是怎么感觉这么做怪怪的😁

@sp55
Copy link

sp55 commented Nov 9, 2019

问题解决了,但是怎么感觉这么做怪怪的😁

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