Let's say, i have two tableview inside a scrollview. After i scrolled up & down tableview1, and then touch and swipe to scroll the scrollview horizontally to tableview2, i want tableview2 to have the same vertical (up & down) position as tableview1. is there any way to achieve that? thanks
+3
A:
You can put code in the UITableViews' viewWillDisplay:
methods that grabs the other table view's scroll position (called a "content offset" in scroll view parlance) and calls setContentOffset:animated:
. This way, whenever either scroll view will appear on the screen, it will automatically scroll to the other view's position.
Tim
2009-06-19 03:47:28