ios - 在TodayExtension的TableViewCell中设置detailTextLabel失败

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

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

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

最佳答案

例如,将属性检查器 -> 样式设置为Right Detail来解决此问题

enter image description here

关于ios - 在TodayExtension的TableViewCell中设置detailTextLabel失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33290042/

相关文章:

swift - 如何列出我的所有 pod 及其版本号

iOS 11 UITableViewCell 删除后 viewForHeaderInSection View 上方

ios - 新的 XCode 版本是否包含 XCode.app 包中的所有框架?

ios - KCOrderedAccessorFix objc_msgSend too many arguments to function call, expected 0, 有 2

ios - 在容器 View 上添加 ViewController 时, TableView 动画无法正常工作?

swift - 游戏结束后如何删除此功能?

ios - 将砌体 x/y 约束设置为 View 宽度/高度的百分比

ios - 更改 iOS 滑动操作的 bool 值

ios - UITableViewController(结果 Controller )中带有 UISearchController 的自定义单元格

ios - 阻塞 for 循环,直到委托(delegate)方法被触发