iphone uitableview 通过代码设置描述

发布于 2024-09-14 04:30:26 字数 70 浏览 1 评论 0原文

我用分组样式创建了 uitableview。

我希望从我的代码中设置表格各部分的描述。

谢谢!

I have my uitableview created with grouped style..

I wish from my code set the description for the sections of my table..

thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

被你宠の有点坏 2024-09-21 04:30:26

您需要更具体地详细说明您的问题,但我建议您首先查看下表委托方法:

- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
    return <sectionName for section>;
}

替换为代码以访问该部分的正确名称。

You need to elaborate on your question with more specifics, but I suggest you start by looking at the following table delegate method:

- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
    return <sectionName for section>;
}

Replace with code to access the proper name for the section.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文