Menu
  • HOME
  • TAGS

Update text in section header (UICollectionReusableView)

ios,uicollectionview,sectionheader,uicollectionreusableview

After many multiple attempts I came up with the following workaround: Set a tag value for each section supplementary element... then later it's possible to search the object by tag: - (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath { UICollectionReusableView *view = nil; if([kind isEqualToString:UICollectionElementKindSectionHeader]) { view = [collectionView dequeueReusableSupplementaryViewOfKind:kind...

Invalid nib registered for identifier

ios,uitableview,nib,sectionheader

The message says the root view (not file's owner) must be specifically an instance of UITableViewHeaderFooterView.