ios - didDeselectRowAtIndexPath issue -


i have tableview in scrollview in popover. when view presented, bottom cell in tableview not visible user. if select of cells deselect fist cell, out of view cell deselected too. has come across behaviour before? if so, how approach it?

now job find visible cells in tableview , apply select/deselect it.

uitableview *tableview = self.tableview;  // or table view  nsarray *paths = [tableview indexpathsforvisiblerows];  //  getting cells  nsmutableset *visiblecells = [[nsmutableset alloc] init];  (nsindexpath *path in paths)  { [visiblecells addobject:[tableview cellforrowatindexpath:path]]; }  // visiblecells contains of cells care about. 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -