在项目中,我在标题中使用了一个图表,UICollectionViewController当用户点击每个cell图表数据时,图表数据就会更新。现在我不希望因为每次使用scrolling图表 ui 都更新重用标题。
在代码中
collectionHeaderView = [self.collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"Header" forIndexPath:indexPath];