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

ios8下拉闪烁 #69

Open
zhu410289616 opened this issue Dec 29, 2014 · 2 comments
Open

ios8下拉闪烁 #69

zhu410289616 opened this issue Dec 29, 2014 · 2 comments

Comments

@zhu410289616
Copy link

在ios8下,egoRefreshScrollViewDidEndDragging的时候,scrollView.contentInset = UIEdgeInsetsMake(60.0f, 0.0f, 0.0f, 0.0f); 会触发egoRefreshScrollViewDidScroll 方法,scrollView.contentOffset.y的值变为60,然后恢复为原先推动的高度值。这个过程会导致跳动闪烁。

可以增加异步调整。
dispatch_async(dispatch_get_main_queue(), ^{
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.2];
scrollView.contentInset = UIEdgeInsetsMake(60.0f, 0.0f, 0.0f, 0.0f);
[UIView commitAnimations];
});

@kangfugui
Copy link

@zhu410289616 多谢

@myseven
Copy link

myseven commented Aug 29, 2015

great!

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