Ideas:
Determine which row is selected by getting the parent class of textfield
-(BOOL)textFieldShouldBeginEditing:(UITextField *)textField{ NSIndexPath *myIndex = [_wifi_detali_tableView indexPathForCell:(UITableViewCell*)[[textField superview]superview]]; NSLog(@"MyIndex.row = %ld",myIndex.row); [_wifi_detali_tableView selectRowAtIndexPath:myIndex animated:NO scrollPosition:UITableViewScrollPositionNone]; return YES; }