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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -