我想禁用苹果的最佳性能指南中所述的颜色管理:https://developer.apple.com/library/content/documentation/GraphicsImaging/Conceptual/CoreImaging/ci_performance/ci_performance.html。其中提到必须将
kCIImageColorSpace
设置为null。但是,使用cifilter?.setValue("null", forKey: kCIImageColorSpace)
没有得到任何结果(应用崩溃)。我阅读了文档:https://developer.apple.com/documentation/coreimage/kciimagecolorspace,发现必须将NSNull
对象作为值进行指定。然而,cifilter?.setValue(NSNull(), forKey kCIImageColorSpace)
也导致了崩溃,并出现以下错误信息:"Class is not key value coding compliant for the key CIImageColorSpace"。请问正确的命令是什么?