ios - UIScrollView in Custom UITableViewCell mixing up data -
i have uiscrollview
in each uitableviewcell
of table view lays out uiviews
horizontally - kind of "featured" section on apple's app store. when i'm setting uitableviewcell
call function within custom uitableviewcell
layout scroll view. loops through data assigned tableview cell's index path , creates custom views , adds them scroll view. however, these mixed when scrolling tableview , when tableview refreshes.
if clear subviews before laying them out, work. however, i'd keep scroll position @ same point every time shows cells. how possible?
i've added external array stores current offset each scrollview, , manually set offset on each scrollview everytime tableview gets refreshed.
Comments
Post a Comment