Reputation: 3693
I have UITable with items filled in from a NSMutableArray. I want to know how to move the cell to the top when the cell is selected.?
I know this has to do with
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
can some1 help how to go about it. ?code snippets would be greatly appreciated.
Upvotes: 0
Views: 890
Reputation: 9472
Replace first array element with selected array element on row select and then call [tableviewController.tableview reloadData];
Upvotes: 1