相关疑难解决方法(0)

iOS 10/UICollectionView:未捕获异常:索引路径上的补充项的布局属性从更改为

滚动浏览UICollectionView时我的应用程序崩溃,但仅在iOS 10下:

Uncaught exception: layout attributes for supplementary item at index path
(<NSIndexPath: 0xc000000000000116> {length = 2, path = 1 - 0})
changed from <UICollectionViewLayoutAttributes: 0x6080001ec400>
index path: (<NSIndexPath: 0xc000000000000116> {length = 2, path = 1 - 0});
element kind: (UICollectionElementKindSectionHeader); frame = (0 8995; 414 180);
zIndex = 1024;  to <UICollectionViewLayoutAttributes: 0x6080001e8200>
index path: (<NSIndexPath: 0xc000000000000116> {length = 2, path = 1 - 0});
element kind: (UICollectionElementKindSectionHeader);
frame = (0 8994; 414 180); zIndex = 1024;  without invalidating the …
Run Code Online (Sandbox Code Playgroud)

uicollectionview ios10

15
推荐指数
0
解决办法
1510
查看次数

如何在iOS7上的UICollectionView中制作粘性标题?

我正在使用此解决方案在集合视图中制作粘贴标头,并且它在iOS6上运行良好.但是在iOS7中,如果选中"在顶部栏下延伸边缘"选项,则标题会粘到视图的原点,然后在导航栏后面.

所以现在我禁用了这个选项但是我真的想调整那个解决方案,使它在边缘扩展时工作(为了在内容滚动导航栏后有一个很好的模糊效果).

有人可以帮助我吗?或者有人有任何其他建议来实现同一目标吗?

ios uicollectionview uicollectionviewlayout ios7

1
推荐指数
1
解决办法
3634
查看次数