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
Post a Comment