I am trying to implement an owner-created view that is a subclass of UIScrollView . Basically, I want to draw the contents of a view, and then draw scrollable material.
I overridden drawRect in my opinion, and I can draw my content scaled to the size of the UIScrollView contentSize property (so some of my custom drawings do not display, as I expected).
The problem is that the content never moves. I can drag my finger up and down, and this leads to the appearance of UIScrollView scrollbars, but my custom content never moves or changes - I still always see only the top.
How can I draw the contents for this UIScrollView so that what I draw scrolls?
source share