【发布时间】:2016-10-04 11:53:04
【问题描述】:
我想在 Collection 视图的标题中添加一些按钮。从情节提要中启用“章节标题”。然后将“视图”拖到该标题。并将其背景颜色设为绿色
【问题讨论】:
-
您是否在源代码中声明了
optional func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView? -
@ezcoding 尝试添加,但给我错误
-
@GijoVarghese 实际的错误消息会有所帮助...
标签: ios swift swift2 uicollectionview swift3