【发布时间】:2018-06-24 21:45:12
【问题描述】:
我用Collection View Cell 创建了Collection View。在Collection View Cell 里面我插入了UIButton。现在因为错误无法连接插座:
从 ViewController 到 UIButton 的 firstPercent 出口是 无效的。插座不能连接到重复的内容。
我该如何解决?
【问题讨论】:
-
您不能将原型单元格中的按钮连接到 UIViewController 子类中的 IBOutlet - 您必须将其连接到 UICollectionviewCell 子类中的 IBOutlet。
标签: swift