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

切换tab再返回,刷新状态消失 #1318

Closed
KingOfSea opened this issue Jul 12, 2019 · 3 comments
Closed

切换tab再返回,刷新状态消失 #1318

KingOfSea opened this issue Jul 12, 2019 · 3 comments

Comments

@KingOfSea
Copy link

描述bug
页面A在刷新,切换tab到页面B,再返回A,刷新状态消失,但此时确实在刷新,代码问题如下图

必现/偶发?
必现

截图
文件:MJRefreshHeader.h,方法:willMoveToWindow,为什么切换时需要endRefreshing

@KingOfSea KingOfSea added the bug label Jul 12, 2019
@KingOfSea KingOfSea changed the title 切换tab再返回,刷新状态消失,已找到问题原因 切换tab再返回,刷新状态消失 Jul 12, 2019
@fengyunjue
Copy link

请问你是怎么解决的,我现在也遇到了同样的问题,感谢

@wolfcon
Copy link
Collaborator

wolfcon commented Jul 19, 2019

现在的机制就是如此. 因为切换了界面. contentInsets 可能由于新的界面受到影响, 导致老的 contentInsets 不能正确的作用, 然后导致切换 tab, 再回去发现, 有一个 refreshHeader 的空白问题

@wolfcon
Copy link
Collaborator

wolfcon commented Jul 19, 2019

Duplicate of #1313

@wolfcon wolfcon marked this as a duplicate of #1313 Jul 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants