How can I set a row selected by default? I want to select a row , take the number of selected row with indexpath.row and then reload the table and select the ro
indexpath.row
Use the following code to get the selected rows in a table view. :)
NSArray *selectedRows=[tableView indexPathsForSelectedRows]; NSMutableArray *rownumberArray=[[NSMutableArray alloc]init]; for (int i=0; i
// rownumberArray contains the row numbers of selected cells.