I have tableview with some names on each cell , how can i get that name when select row ?
i know that i have to use delegate method
-(void)tableView:(
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
NSString *rowTitle=[tableView cellForRowAtIndexPath:indexPath].textLabel.text;
}
Here,
[tableView cellForRowAtIndexPath:indexPath] gives you the selected cell and then the .textLabel.text gives you the label for that cell.