7.29获取cell的index
2017-07-29 本文已影响0人
小码农杰哥
//cell的点击方法
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
NSIndexPath *index = [NSIndexPath indexPathForRow:2 inSection:2];
PersonalDataCell *cell = [self.tableView cellForRowAtIndexPath:index];
cell.describeLabel.text = @"";
}