草庐IT

CSSectionHeader

全部标签

swift - 将类型 'UICollectionReusableView' 的值转换为 'MyApp.CSSectionHeader' 时出错

我有以下类(class):classCSSectionHeader:UICollectionReusableView{@IBOutletvartextLabel:UILabel!}然后我尝试将其转换为如下所示:overridefunccollectionView(collectionView:UICollectionView,viewForSupplementaryElementOfKindkind:String,atIndexPathindexPath:NSIndexPath)->UICollectionReusableView{letcell1=UICollectionReusab