Learn how to use UIScrollView to present content larger than a screen - from beginner to advanced.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/2268-uiscrollview-tutorial-getting-started
Learn how to use UIScrollView to present content larger than a screen - from beginner to advanced.
Helped me with my project. Thanks.
But “Also wire up the scrollView outlet of the container to the scroll view.” took me ages to figure that one out. It turns out it’s as simple as “Control drag from the new UIView to the existing UIScrollView. Select the one and only scrollView.” Done.
Just added the code within the “Paging with UIScrollView” section to my app and when I test it, the 3rd photo is displayed on top of the 2nd photo. Any suggestions on what I should check/change would be appreciated. Thanks in advance.
Haven’t had any success trying to resolve this on my own. Any help would be appreciated.
I had your same issue and I solved it like this, according to stackoverflow:
func scrollViewDidScroll(scrollView: UIScrollView) {
self.loadVisiblePages()
}