一个 collectionview 单元格中有两个 UIImage?

Two UIImage in one collectionview cell?

我想将第二个 UIImage 放在 collectionview 单元格中,但它 return 错误

"error: Illegal Configuration: The newIcon outlet from the DashboardViewController to the UIImageView is invalid. Outlets cannot be connected to repeating content. "

这是描述生成的错误的图片:

如何在一个 collectionview 单元格中制作两个 UIImage?

您需要将新的 UIView 添加到 "dashboardCell"。添加 UIView 后,您可以向该 UIView 添加更多 UIImage。