ios - Swift - dequeueReusableCellWithReuseIdentifier,在滚动后不会加载collectionViewController的单元格(在UIView中)

时间:2015-08-07 06:59:03

标签: ios swift scroll uicollectionview uicollectionviewcell

我有一个包含3个视图的ViewController:

  • Header(UIView)
  • TabBar(UIView)
  • UIView3(UIView)

在我的UIView3中,我有一个collectionViewController。一个关键因素是我把我的 collectionViewController.scrollEnable = False ,因为在我滚动的时候,只有UIView3滚动,我希望我的entier屏幕滚动(这样如果我们滚动足够我的标题和标签栏被隐藏。

所以这就是我所拥有的:

enter image description here

这就是我的屏幕的样子:

enter image description here

哪个是完美的。 但是,当我向下滚动时,这就是应该的样子:

enter image description here

但是,它看起来像这样:

enter image description here

我认为我的问题来自" dequeueReusableCellWithReuseIdentifier"没有看到我滚动的功能,但我不知道如何刷新"滚动值,因此它加载单元格3-4的末尾以及单元格5-6。

你知道吗?

0 个答案:

没有答案