0
如何清除UITableView cell.detailTextLabel.text中的内容?一旦用户点击顶部的左侧栏按钮,我想要清除所有答案?清除UITableView中单元格的值
以下是我的代码。不知道这是否是正确的方法。
-(void)ClearBtn:(id)sender {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [self.tableView dequeueReusableCellWithIdentifier:CellIdentifier];
cell.detailTextLabel.text = @"test";
//NSLog(@"cell %@", cell.detailTextLabel.text);
[self.tableView reloadData];
}