0
UIViewサブクラスをコレクションビューフッター(UICollectionReusableView)として使用したいと考えています。クラスがすでにUIViewのUIViewサブクラスをUICollectionViewフッターとして使用する方法
func collectionView(collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, atIndexPath indexPath: NSIndexPath) -> UICollectionReusableView {
guard let footerView = self.collectionView.dequeueReusableSupplementaryViewOfKind(UICollectionElementKindSectionFooter, withReuseIdentifier:"CustomUIView", forIndexPath: indexPath) as? UICollectionReusableView else { break }
return footerView
}