上/下にスクロールしているときに、UICollectionViewのどのメソッドを知っている人はいますか。スクロールダウン中にUICollectionViewのヘッダーを変更する必要があります。独自のカレンダービューを実行しています。
セクションのヘッダービューを作成する次のメソッドがあります
- (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath
{
ASCalendarHeaderView *calHeader = [self.calCollectView dequeueReusableSupplementaryViewOfKind:kind withReuseIdentifier:@"CalendarHeader" forIndexPath:indexPath];
calHeader.MonthYearLabel.text = [calendar getCurrentMonthYear:calendar.today];
[calHeader setNeedsDisplay];
calHeader.MonthYearLabel.textAlignment = NSTextAlignmentRight;
if (indexPath.section){
[calendar getNextMonth:calendar.today];
NSLog(@"Some Text");
}
return calHeader;
}
しかし、上にスクロールしている間、月が増えます。上スクロール中と下スクロール中を別々に意味する方法はありますか?
ありがとう