ios - UICollectionView SupplementaryView 将 UIButton 添加到页脚

标签 ios swift uicollectionview footer supplementary

有谁知道如何向 UICollectionView 内的 SupplementaryView 页脚添加按钮?我尝试编写一个代码,但不断收到错误,并且当前在 viewForSupplementaryElementOfKind 函数中遇到此错误;错误:

invalid redeclaration of 'collectionView(_:viewForSupplementaryElementOfKind:atIndexPath:)'

谢谢!! :)

最佳答案

appcoda 上有一个关于 Collection View 中的 Supplementary View 的 Nice Tutorail。

Click Here

关于ios - UICollectionView SupplementaryView 将 UIButton 添加到页脚,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34101594/

相关文章:

ios - 在 iOS 中创建六边形 ImageView 形状

ios - 每次缩放图像时,内存都会增加 20 MB

ios - 从 REST API 加载数据后执行 segue

ios - 如何实时获取collectionView当前的section number

ios - 从屏幕边缘滑动到 UICollectionView

ios - 在 xcode "\\\\\\\"$(SRCROOT)/myprojectname\\\\\\\"中的库搜索路径中,所有这些反斜杠是什么意思?

ios - 稍后在 iTunes Connect 上上传应用程序预览视频

ios - 你如何在 React Native 中获取框架的大小?

ios - 在 Storyboard 中创建可重用的 View

swift - 无法将 UICollectionViewCell 集中在 UITableViewCell 中