Reload UICollectionView header or footer?

前端 未结 10 1103
余生分开走
余生分开走 2020-12-08 02:35

I have some data that is fetched in another thread that updates a UICollectionView\'s header. However, I\'ve not found an efficient way of reloading a supplementary view suc

10条回答
  •  囚心锁ツ
    2020-12-08 03:24

    [UIView performWithoutAnimation:^{
        [self.collectionView reloadSections:[NSIndexSet indexSetWithIndex:4]];
    }];
    
    [UIView performWithoutAnimation:^{
        [self.collectionView reloadData];
    }];
    

提交回复
热议问题