我正在UITableViewCell
使用我的 coreData 属性配置 a 。我能够显示文本。但我想在单击按钮时用其他数据重新加载单元格。
-(void)configureCell:(UITableViewCell *)cell atIndexPath:(NSIndexPath *)indexPath
{
Book *entity = [self.fetchedResultsController objectAtIndexPath:indexPath];
firstLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 10, 120, 21)];
secondLabel = [[UILabel alloc]initWithFrame:CGRectMake(120, 10, 120, 21)];
firstLabel.text = entity.title;
secondLabel.text = entity.author;
[cell.contentView addSubview:firstLabel];
[cell.contentView addSubview:secondLabel];
//On button Click i want to change firstLabel.text = entity.date and secondlabel.text = entity.details
}