首页 > 移动平台 > 详细

ios UITableView 获取点击cell对象

时间:2014-08-19 11:03:04      阅读:451      评论:0      收藏:0      [点我收藏+]

- (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]; // 加上对应的回复昵称

}

ios UITableView 获取点击cell对象,布布扣,bubuko.com

ios UITableView 获取点击cell对象

原文:http://blog.csdn.net/alincexiaohao/article/details/38677411

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!