Connect two UIScrollView's together
Posted
by johnw188
on Stack Overflow
See other posts from Stack Overflow
or by johnw188
Published on 2010-03-21T23:09:29Z
Indexed on
2010/03/21
23:11 UTC
Read the original article
Hit count: 339
iphone
|iphone-sdk
Here's a tricky iPhone problem I've been working on. I have three UIScrollViews on a page, one that only scrolls horizontally, one that only scrolls vertically, and one that scrolls both horizontally and vertically. I want to lock the views together, so that the horizontal location of the horizontal only scrollview matches the horizontal location of the main scrollview, and the vertical scrollview likewise, so that dragging the main scrollview around controls the horizontal and vertical scrollviews.
Problem is, I'm completely stumped. I've looked around inside the apple documentation, but there doesn't seem to be any way to do this officially. One thought that I had was to somehow "clone" any touch on any of the scrollviews to a point on the other two, but I have no idea how to do this. If anyone has any thoughts on this, I'd very much appreciate it.
© Stack Overflow or respective owner