您好,我想知道我们如何实现这一目标?
在 UITableView
中我们可以简单地做
tableView.tableHeaderView = SomeView;
或
tableView.tableFooterView = SomeView;
但我想知道如何为 UICollectionView
做同样的事情。
P.S.:不是节页眉和页脚
最佳答案
UITableView
有全局 header tableHeaderView
和 tableFooterView
,但是 UICollectionView
没有全局 header 所以你会必须使用节标题。
关于ios - UICollectionView 页眉和页脚 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33183290/