我想根据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]?'发布于 2020-04-05 02:15:23
这个错误是不言而喻的。
guard let representation = self.bestRepresentation(for: frame,
context: nil,
hints: [.interpolation: NSImageInterpolation.high])
else { return nil }https://stackoverflow.com/questions/61032371
复制相似问题