Is there a way to simulate scrollViewDidScrollToBottom in a UIScrollView?

I would like to do an infinite scroll on UITableViewController, I use a method scrollViewDidScroll:to check the contentOffset, however I cannot expand the offset, which would be the bottom ScrollView.

Any suggestions?

Thanks in advance.

+3
source share
1 answer

Assuming contentSize.height> bounds.size.height

if ( contentOffset.y >= contentSize.height - bounds.size.height ) { ... }
+7
source

Source: https://habr.com/ru/post/1751805/


All Articles