我收到此代码的错误
cell.label.numberOfLines = 2
cell.label.text = adjust1
cell.label.font = UIFont.systemFontOfSize(12.0)
cell.label.adjustsFontSizeToFitWidth
错误在此行
cell.label.adjustsFontSizeToFitWidth
错误是
The Expression resolves to an unused I-value
需要修复
答案 0 :(得分:3)
替换它:
cell.label.adjustsFontSizeToFitWidth
用这个:
cell.label.adjustsFontSizeToFitWidth = true