Quantcast
Viewing latest article 1
Browse Latest Browse All 7

Answer by Radu Ghitescu for Check if a UIScrollView reached the top or bottom

Do it like this(for Swift 3):

class MyClass: UIScrollViewDelegate {   func scrollViewDidScroll(_ scrollView: UIScrollView) {        if (scrollView.contentOffset.y >= (scrollView.contentSize.height - scrollView.frame.size.height)) {           //scrolled to top, do smth        }    }}

Viewing latest article 1
Browse Latest Browse All 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>