We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, is there a delegate method called when I scroll to a new page, or a way of finding out which is my current page?
The text was updated successfully, but these errors were encountered:
Actually, you can get this info overriding the scrollViewDidScroll method as seen on #35:
scrollViewDidScroll
override func scrollViewDidScroll(scrollView: UIScrollView) { super.scrollViewDidScroll(scrollView) animator.animate(scrollView.contentOffset.x) // … let currentPage = Int(scrollView.contentOffset.x / pageWidth) pageControl.currentPage = currentPage }
Sorry, something went wrong.
No branches or pull requests
Hi, is there a delegate method called when I scroll to a new page, or a way of finding out which is my current page?
The text was updated successfully, but these errors were encountered: