Scroll View School | raywenderlich.com

Scroll views are a means to provide a lot of content in a small amount of space, but unfortunately, they can be a bit tricky. This course will walk you through the basics of scroll views, showing you to use them in a variety of layouts. Once you get comfortable with them, you'll explore several scroll view recipes that have been inspired in some popular recipes.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/9223-scroll-view-school

Catie and Jessy, this is SO good. Your teaching style is perfect and your examples are right on. Appreciate the hard work. Keep ‘em coming!

2 Likes

Hi Catie and Jessy, and thank you very much for your helpful tutorial! I ran into the following problem, maybe you can help: I do not want do allow scrolling on my ScrollView with 3 fingers, only with 1 or 2 fingers. According to the default implementation of the UIScrollView, its panGestureRecognizer has minimumNumberOfTouches = 1 and maximumNumberOfTouches = 2, which seems what I want already. But I AM able to scroll with 3 fingers. And when I scroll with three fingers, the scrollView’s panGestureRecognizer reports its numberOfTouches as 2… I wonder whether this a bug or am I missing something. Have you had this similar observation? And have you got a hint for a workaround? Many thanks!

1 Like

@catie @jessycatterwaul Do you have any feedback about this? Thank you - much appreciated! :]

Hi there! I’m sorry to say I don’t have any ideas for you right now, but I’ll take a look at this again when we get to updating this course for iOS 13. Please do report back if you figure it out! :]

Hi Cati and Jessy,
thanks for your course.
I was searching for the keyboard insets problem which you explained in your course and your proposal seemed perfect to solve my problem.
After rewriting my code with your scrollview/keyboardinset solution, I got some very strange behavior which moved the scrollview upwards and upwards without going downwards again. When debugging this behavior, I saw that the keyboardWillHideNotification and keyboardWillShowNotification will not appear pairwise. Instead I saw a lot more …WillShow… than …WillHide… which explains my observations.

My solution is to store the previous state (keyboardIsShown / keyboardIsHidden) and add the keyboardAdjustmentHeight only, when the keyboardIsHidden before. The keyboardAdjustmentHeight is also only subtracted, when the keyboardIsShown before.
I do not know if this problem only appeared with iOS13. Maybe there will be a new iOS13 ScrollView course?

Thanks, Matthias

1 Like

Hi! Thanks very much for letting us know.
I’m not sure when this course is due to be updated (it may be early iOS 14!), but I’ll make sure we take a look at this again when we do :]

hey @catie this isn’t working. for Xcode 11

@saurabhtri Do you still have issues with this?