我有一個奇怪的行爲UICollectionView
。UICollectionViewCell越過粘頭
在圖1中顯示了用戶向上滾動集合時的正確行爲:項目位於標題視圖下。
當我重新加載搜索後的項目,某些項目滾動期間越過頭部。
我不知道有關原因... 任何意見或建議? 謝謝。
編輯
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout referenceSizeForHeaderInSection:(NSInteger)section
{
return CGSizeMake(CGRectGetWidth([UIScreen mainScreen].bounds), CGRectGetWidth([UIScreen mainScreen].bounds) * 0.612f);
}
你在使用UIViewController還是UICollectionViewController? –
你能告訴我你的UICollectionView的最高限制在哪裏?這是在UIView頂部佈局或搜索欄底部? –
@AbilashBNair UIViewController添加了UICollectionView – Fry