指定“左侧细节”表格视图单元格的文本

发布于 2024-12-22 03:49:59 字数 123 浏览 4 评论 0原文

我有一个带有“Left Detail”样式单元格的 UITableView。表视图是静态的,并且是在故事板中创建的。但是,当我运行该应用程序时,左侧详细信息单元格的文本消失了。那么如何通过代码指定单元格的主要文本以及旁边的小标签呢?

I have a UITableView with a "Left Detail" styled cell. The table view is static and has been created within a storyboard. However, when I run the app, the left detail cell's text disappears. So how can I specify the cell's main text and the small label next to it through code?

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

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

发布评论

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

评论(1

尘世孤行 2024-12-29 03:50:00

您仍然实现了 UITableViewDataSource 方法吗?如果您使用静态表,则应该删除它们,因为它们会覆盖您在故事板中设置的内容。

Do you still have the UITableViewDataSource methods implemented? If you're using a static table, you should remove those because they're going to overwrite what you've set in the storyboard.

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