【发布时间】:2016-12-07 21:30:00
【问题描述】:
我希望使用 UIView 子类作为集合视图页脚 (UICollectionReusableView)。由于该类已经编写为 UIView
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
}
【问题讨论】:
标签: ios uiview uicollectionview uicollectionreusableview