【问题标题】:Setting detailTextLabel in TodayExtension's TableViewCell failed在 TodayExtension 的 TableViewCell 中设置 detailTextLabel 失败
【发布时间】:2015-10-22 20:23:36
【问题描述】:

我尝试在今天的扩展中的 tableView 的 detailTextLabel 中显示文本。代码似乎是正确的,但我不知道为什么它没有显示在单元格中。

我在 iOS 应用程序(cell.detailTextLabel?.text = "Test")` 的普通 tableView 中设置了文本,但不知道为什么它不起作用。希望您能够帮助我。

【问题讨论】:

  • 属性检查器中的 TableViewCell 是什么类型 -> 样式?
  • 样式设置为自定义
  • 例如尝试设置正确的细节
  • 是的,现在可以了。 Style Custom 和 Basic 不显示 detailTextLabels。感谢您的帮助!
  • 如果不再相关,请考虑删除此问题。

标签: ios swift uitableview ios8-today-widget today-extension


【解决方案1】:

例如将Attributes Inspector -> Style 设置为Right Detail 以解决此问题

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-20
    • 2016-07-10
    • 2015-10-15
    • 2022-08-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多