在 TodayExtension 的 TableViewCell 中设置 detailTextLabel 失败

Setting detailTextLabel in TodayExtension's TableViewCell failed

我尝试在今天的扩展中的 tableView 的 detailTextLabel 中显示文本。代码好像是对的,就是不知道为什么单元格里没有显示出来。

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

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