iOS:fix refreshableview srolling problem
This commit is contained in:
parent
3f7aac9951
commit
15172bb653
@ -91,6 +91,13 @@ - (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL
|
|||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
self.refreshing = YES;
|
self.refreshing = YES;
|
||||||
});
|
});
|
||||||
|
} else if (scrollView.contentOffset.y + scrollView.height > scrollView.contentSize.height) {
|
||||||
|
self.bounces = NO;
|
||||||
|
[UIView animateWithDuration:0.2f animations:^{
|
||||||
|
scrollView.contentOffset = (CGPoint) {0, scrollView.contentSize.height - scrollView.height};
|
||||||
|
} completion:^(BOOL finished) {
|
||||||
|
self.bounces = YES;
|
||||||
|
}];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user