iphone - UITableViewCell shows highlighted state after I call reloadSections:withRowAnimation: -


i have uitableview lot of sections. each section has cell @ top can selected (taking detail screen), n rows without selection after, , 1 row can pressed expand/collapse middle rows. works fine, logic manage number of rows , expanded/collapse feature reloadsections:withrowanimation: method using uitableviewrowanimationfade, problem that, eventually, pressing expand/collapse row, last one, makes first 1 shown highlighted. doesn't happen time, sometimes, makes no sense because i'm not touching first row @ all.

i have i'm using custom backgroundview , selectedbackgroundview cells. without last 1 (leaving default blue selectedbackgroundview) problem gone.

this sounds reuseidentifiers. if cell being reused, cell selected before. happen when bottom row (the 1 press) moved out of view rows appear?

anyway, solution should deselect bottom row before insert others.

hope helps...


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -