【发布时间】:2020-07-16 19:58:20
【问题描述】:
我想根据https://stackoverflow.com/a/14878177/848968添加图像插值提示
guard let representation = self.bestRepresentation(for: frame, context: nil,hints: NSImageInterpolation) else {
return nil
但我不断收到这个异常
Cannot convert value of type 'NSImageInterpolation.Type' to expected argument type '[NSImageRep.HintKey : Any]?'
【问题讨论】:
-
错误很明显
hints: [.interpolation: NSImageInterpolation.high.rawValue] -
@LeoDabus 谢谢.. 你能把它添加为答案吗?你能帮我解决这个问题吗stackoverflow.com/questions/61030581/…