Moving cell to the top of the UITableView
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 selecte开发者_如何转开发d.?
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.
Replace first array element with selected array element on row select and then call [tableviewController.tableview reloadData];
精彩评论