gpt4 book ai didi

ios - UICollectionView 页眉和页脚 View

转载 作者:搜寻专家 更新时间:2023-10-30 22:28:35 28 4
gpt4 key购买 nike

您好,我想知道我们如何实现这一目标?

UITableView 中我们可以简单地做

tableView.tableHeaderView = SomeView;

tableView.tableFooterView = SomeView;

但我想知道如何为 UICollectionView 做同样的事情。

P.S.:不是节页眉和页脚

最佳答案

UITableView 有全局 header tableHeaderViewtableFooterView,但是 UICollectionView 没有全局 header 所以你会必须使用节标题。

关于ios - UICollectionView 页眉和页脚 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33183290/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com