|
|
@ -4262,8 +4262,11 @@ typedef enum : NSUInteger {
|
|
|
|
|
|
|
|
|
|
|
|
CGFloat contentHeight = self.safeContentHeight;
|
|
|
|
CGFloat contentHeight = self.safeContentHeight;
|
|
|
|
|
|
|
|
|
|
|
|
CGFloat dstY
|
|
|
|
// bottomLayoutGuide accounts for extra offset needed on iPhoneX
|
|
|
|
= MAX(0, contentHeight + self.collectionView.contentInset.bottom - self.collectionView.bounds.size.height);
|
|
|
|
|
|
|
|
|
|
|
|
CGFloat dstY = MAX(0,
|
|
|
|
|
|
|
|
contentHeight + self.collectionView.contentInset.bottom + self.bottomLayoutGuide.length
|
|
|
|
|
|
|
|
- self.collectionView.bounds.size.height);
|
|
|
|
|
|
|
|
|
|
|
|
[self.collectionView setContentOffset:CGPointMake(0, dstY) animated:NO];
|
|
|
|
[self.collectionView setContentOffset:CGPointMake(0, dstY) animated:NO];
|
|
|
|
[self didScrollToBottom];
|
|
|
|
[self didScrollToBottom];
|
|
|
|