我正在swift和xcode 8中编写自定义集合视图布局.我尝试使用以下函数实现自定义集合视图布局属性
override class func layoutAttributesClass() -> AnyClass { return CircularCollectionViewLayoutAttributes.self }
但我得到错误'方法不会覆盖其超类中的任何方法'.任何帮助深表感谢.
uicollectionview swift3 xcode8
swift3 ×1
uicollectionview ×1
xcode8 ×1