gpt4 book ai didi

iphone - 如何获得像 Phone.app -"Recents tab"或 Mail.app -"mail list"这样的 TableViewCell

转载 作者:行者123 更新时间:2023-11-28 19:15:17 24 4
gpt4 key购买 nike

我需要这样的列表:


“我的头衔”。 . . . . . . . . . . “上午 10 点 20 分”
“创建者:meadlai”

“标题字符串”。 . . . . . . . . . . "09:33AM"
“创建者:meadlai”

“文本标签”。 . . . . . . . . . . “上午 11 点 59 分”
“细节文本标签”

共有三个字段:title,creator,time。
它几乎像 Phone.app“Recents-Calls”风格。
Mail.app 的邮件列表。我认为它不需要自定义 UITableViewCell。
我可以使用 System-UITableViewCell 创建类似的列表吗?
任何线索或代码?非常感谢你。

最佳答案

也许更改单元格的 accessoryView,因为没有像您想要的那样的“样式”。不过,自定义单元格类可能会使事情变得更容易。

各种样式的单元格的枚举。

typedef enum {
UITableViewCellStyleDefault,
UITableViewCellStyleValue1,
UITableViewCellStyleValue2,
UITableViewCellStyleSubtitle
} UITableViewCellStyle;

单元格使用的标准附件控件的类型。

typedef enum {
UITableViewCellAccessoryNone,
UITableViewCellAccessoryDisclosureIndicator,
UITableViewCellAccessoryDetailDisclosureButton,
UITableViewCellAccessoryCheckmark
} UITableViewCellAccessoryType;

关于iphone - 如何获得像 Phone.app -"Recents tab"或 Mail.app -"mail list"这样的 TableViewCell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12400636/

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