Uitableview self.quickDialogTableView重新加载数据而不是重新加载数据

Uitableview self.quickDialogTableView重新加载数据而不是重新加载数据,uitableview,reloaddata,quickdialog,Uitableview,Reloaddata,Quickdialog,我有一个简单但自定义的节标题,在其中我在标签中显示动态内容。但是,当我弹出一个VC并在激活的VC中运行[self.quickDialogTableView reloadData]时,会出现视图中的[self.quickDialogTableView reloadData],数据没有更新到正确的“self.sectionHeaderTitle”。知道我做错了什么吗 (void)sectionHeaderWillAppearForSection:(QSection *)section atIndex

我有一个简单但自定义的节标题,在其中我在标签中显示动态内容。但是,当我弹出一个VC并在激活的VC中运行[self.quickDialogTableView reloadData]时,会出现视图中的[self.quickDialogTableView reloadData],数据没有更新到正确的“self.sectionHeaderTitle”。知道我做错了什么吗

(void)sectionHeaderWillAppearForSection:(QSection *)section atIndex:(NSInteger)indexPath {
  if (indexPath == 0) {
  UIView *header = [[UIView alloc] initWithFrame:CGRectMake(0, 5, 320, 110)];
  header.backgroundColor = [UIColor clearColor];

  UIView *header_background = [[UIView alloc] initWithFrame:CGRectMake(25, 10, 270, 100)];
  header_background.backgroundColor = [UIColor whiteColor];

  UILabel *title = [[UILabel alloc] initWithFrame:CGRectMake(15, 0, 255, 25)];
  title.text = @"A sample static title";

  UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(55, 40, 200, 40)];
  label.text = self.sectionHeaderTitle;

  [header addSubview:header_background];
  [header_background addSubview:title];
  [header_background addSubview:label];
  [section setHeaderView:header];
}

尝试重新加载该节,如下所示:

 [self.quickDialogTableView reloadSections:[NSIndexSet indexSetWithIndex:section] withRowAnimation:UITableViewRowAnimationBottom];