答:调用此方法可滚动到组头
-(void) scrollToSectionHeader:(int)section {
NSIndexPath *indexPath = [NSIndexPathindexPathForRow:0 inSection:section];
UICollectionViewLayoutAttributes *attribs =
[self.collectionView layoutAttributesForSupplementaryElementOfKind:UICollectionElementKindSectionHeader atIndexPath:indexPath];
CGPoint topOfHeader = CGPointMake(0, attribs.frame.origin.y -
self.collectionView.contentInset.top);
[self.collectionView setContentOffset:topOfHeader animated:YES];
}