ios UITableView 获取点击cell对象

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

{

    UITableViewCell *cell= [tableView cellForRowAtIndexPath:indexPath]; // 获取cell 对象

    UILabel *name = (UILabel *)[cell.contentView viewWithTag:111]; // 获取昵称

    

    _inputView.inputText.text = [NSString stringWithFormat:@"回复 %@ :", name.text]; // 加上相应的回复昵称

}

原文地址:https://www.cnblogs.com/cynchanpin/p/6858607.html