我有一个奇怪的行为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