Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (BOOL)isAtBottom {
- //要考虑 contentInset
- UIEdgeInsets inset = self.contentInset;
- CGFloat heightWithOffsetY = self.contentOffset.y + CGRectGetHeight(self.bounds);
- CGFloat contentSizeHeightWithContentInset = self.contentSize.height + inset.top + inset.bottom;
- return heightWithOffsetY >= contentSizeHeightWithContentInset;
- }
Add Comment
Please, Sign In to add comment