gpt4 book ai didi

ios - 在 iOS 中将 header 和 TableViewCell 添加到 TableView

转载 作者:行者123 更新时间:2023-11-29 02:48:49 24 4
gpt4 key购买 nike

要向我的 tableView 添加标题,我遵循 @KirbyTodd 在 Adding iOS UITableView HeaderView (not section header) 的回答。 。现在我想向我的表格添加一个 TableViewCell。但是当我将单元格放入 TableView 时,该单元格出现在我的标题上方。有谁知道如何使用 Storyboard 正确地将标题和自定义单元格添加到我的 TableView 中?

最佳答案

您添加的不是tableHeaderView,而是tableFooterView。如果您添加 tableHeaderView,它会出现在所有内容之上。

关于ios - 在 iOS 中将 header 和 TableViewCell 添加到 TableView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24787633/

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