Skip to content

ios8下拉闪烁 #69

@zhu410289616

Description

@zhu410289616

在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];
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions