UICollectionView开始闪烁,并带有粘性标头

时间:2019-03-16 21:22:28

标签: ios swift uicollectionview uikit

我写了这段代码:

java.lang.IllegalStateException: The driver executable does not exist

对于我的流布局,以及:

layout.sectionHeadersPinToVisibleBounds = true

func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, referenceSizeForHeaderInSection section: Int) -> CGSize { return CGSize(width: collectionView.bounds.width, height: 80.0) } 代表中。

当我同时实现这两件事时,我的UICollection视图开始闪烁,布局崩溃并滚动失败而没有反弹。

请帮我解决问题。

0 个答案:

没有答案