cell!.textLabel?.text = vehicle["vrn"].string
cell?.detailTextLabel?.text = stateString
我想将 stateString
显示为 bold
并且还尝试使用 textLabel
而不是 detailedText
但它没有不工作。
最佳答案
您可以像这样设置detailTextLabel
的字体属性:
cell.detailTextLabel?.font = UIFont.boldSystemFontOfSize(15.0)
关于swift - 如何在 swift 中为 detailTextLabel 加粗文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31725725/