gpt4 book ai didi

ios - UITableView:如何将页脚附加到具有分组动态原型(prototype)单元格的部分?

转载 作者:行者123 更新时间:2023-11-29 01:16:23 25 4
gpt4 key购买 nike

我正在尝试为具有分组动态原型(prototype)单元格 (Swift) 的部分创建页脚。

它适用于静态单元格,Storyboard 中甚至有控件,但这也适用于动态填充的 tableView 吗?

我在我的应用程序中同时使用了带有静态和动态单元格的 tableView,但我希望它们看起来相似。

非常感谢您的帮助。

最佳答案

原来我只需要将这个方法实现到包含这个 tableView 的 viewController 中:

override func tableView(tableView: UITableView, titleForFooterInSection section: Int) -> String? {
return "This will appear in footer styling below the section."
}

关于ios - UITableView:如何将页脚附加到具有分组动态原型(prototype)单元格的部分?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35131833/

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