指定“左侧细节”表格视图单元格的文本
我有一个带有“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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您仍然实现了
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.