Scrollbar Incorrectly Appears Underneath Uicollectionview Section Header

UICollectionView section headers flicker issue

I solved my issue. It turns out that under iOS 7 inside

- (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath
{

You MUST NOT EVER set the frame of your Supplementary View. Leave that for the appropriate delegate methods.

My goodness. 17 hours later, I'm going to bed.

Scroll UICollectionView to section header view

I think this may help you

UICollectionViewLayoutAttributes *attributes = [self.collectionView layoutAttributesForItemAtIndexPath:indexPath];

Then you can access the location through attributes.frame



Related Topics



Leave a reply



Submit