Friday, 15 July 2011

uitableview - how to programmatically deselect a static cell iOS -



uitableview - how to programmatically deselect a static cell iOS -

i have static cell , when clicked launches modal view. except when homecoming modal view cell still selected? why doing , how can create make cell selected until modal covers view.

thanks in advance

if utilize uitableviewcontroller instead of uiviewcontroller done automatically. otherwise, need deselecting using deselectrowatindexpath:animated: on uitableview. best place on viewdidappear: of presenting view controller. way, user still sees deselecting animation allowing them reorient themselves.

if don't need track selected row other purposes, can utilize indexpathforselectedrow determine index path needs deselected (if any).

ios uitableview swift

No comments:

Post a Comment