gpt4 book ai didi

ios - 在静态行 UITableView 中创建自定义单元格

转载 作者:可可西里 更新时间:2023-11-01 04:54:32 25 4
gpt4 key购买 nike

我尝试创建带有设置的应用程序。对于显示的设置,我选择表格 View 。

所以我需要创建这个表。有苹果官方指南-https://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/TableView_iPhone/TableViewCells/TableViewCells.html但我无法理解如何设置单元格 View 。我应该如何设置 Sections 的名称?

是否有关于创建此类表的教程?我找不到任何东西

UPD 我想创建这样的表:

enter image description here

最佳答案

最好的选择是使用带有 UITableViewController 子类的 UIStoryboard。

放入 UITableView 并在属性检查器中选择“内容”>“静态单元格”。

enter image description here

然后您可以安排您的单元格并将控件与 IBOutlets 和操作链接起来。

关于ios - 在静态行 UITableView 中创建自定义单元格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9579101/

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