【发布时间】:2018-10-16 10:19:42
【问题描述】:
我得到“表达式类型'@lvalue UIImage?'使用 swift 4 在 IOS 中设置图像的色调颜色时出现“在没有更多上下文的情况下模棱两可”的错误。
cell.icon.image = cell.icon.image?.renderingMode(.alwaysTemplate)
是不是我做错了什么?
【问题讨论】:
-
你试过这样吗?
cell.icon.image = cell.icon.image?.withRenderingMode(.alwaysTemplate) -
@AhmetSinaUstem 谢谢这是问题