在didSelectRowAtIndexPath 里面取cell的方法

选中了tableview的cell的某一行

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

{

}

  

UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];

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

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

posted @ 2016-07-16 13:40  Ninesday  阅读(5398)  评论(0编辑  收藏  举报