gpt4 book ai didi

ios - 在另一个 collectionview 的 header 中实现 collectionview 时出错

转载 作者:行者123 更新时间:2023-11-28 08:26:55 29 4
gpt4 key购买 nike

我想在另一个 collectionview 标题中实现一个 Collection View 幻灯片,但是当我尝试连接 uicollectionview 的导出时,我收到一条错误消息,指出导出无法连接到 Storyboard 中的重复变量。

我正在使用 xcode 8 + swift 3。

enter image description here

enter image description here enter image description here

最佳答案

您需要将 outlet 连接到自定义 collectionview header 而不是 View Controller 。

您的 Collection View 单元格动态变化;因为你重复细胞和导出会模棱两可。您需要创建一个 UICollectionView header 子类,并在那里创建内部 Collection View 的导出。

关于ios - 在另一个 collectionview 的 header 中实现 collectionview 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39716648/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com