feat:fix Refreshable pulldown and so on

This commit is contained in:
pengfei.zhou
2019-11-27 13:30:31 +08:00
parent a41036c91d
commit 9be891e284
6 changed files with 31 additions and 3 deletions

View File

@@ -79,6 +79,9 @@ - (void)setRefreshing:(BOOL)refreshing {
return;
}
if (refreshing) {
if (self.onRefreshBlock) {
self.onRefreshBlock();
}
[UIView animateWithDuration:0.3f
animations:^{
self.contentInset = UIEdgeInsetsMake(self.headerView.height, 0, 0, 0);