I have a rather tricky scrolling scenerio I need to get sorted. I have a parent UIScrollView with a single container view containing two child UIView subclasses. Call them viewA and viewB. The UIScrollView has been constrained to scroll/zoom horizontally. ViewA and ViewB are layed out as horizontal strips, one above the other. The bounds of viewA and viewB exceed the bounds of the scrollView and are revealed during scroll/zoom as is normal. So far so good.
Here is where things get a bit tricky: I need to be able to drag viewB vertically as well as horizontally. I prefer not to nest viewB within it's own scrollView.
My question is, what is the correct way to implement simple vertical scrolling for viewB while still having it behave correctly with respect to the scrollView? Do I simply implement the four touch sequence methods: begin/moved/ended/cancelled in viewB, manipulating viewB's transform matrix and I'm in the clear or is the more to it?
Thanks in advance.
Cheers, Doug