ios - Scroll second UITableView in line with second UITableView -
i have 2 table views set side side, , need them scroll @ same time. so, when scroll one, other 1 scroll @ same time.
i did searching , couldn't find information, assume must possible somehow.
my table views both connected same class , differentiate between them this:
if tableview == tableview1 { // } else if tableview = tableview2 { // }
you can set scrollview
delegate self on both of tableview
's scrollviews
. , in -scrollviewdidscroll
, take contentoffset
, set other scrollview
's contentoffset
same value.