在didSelectRowAtIndexPath 里面取cell的方法

选中了tableview的cell的某一行

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

{

}

  

UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];

如果你是自定义的话就用下面这种

MyCustomCell *cell = (MyCustomCell *)[tableView cellForRowAtIndexPath:indexPath];

posted @ 2017-02-17 09:38  nocrash  阅读(287)  评论(0编辑  收藏  举报