转换为 后Swift 3.0
,由于某种原因,我收到此错误
'(String, CIContext?, [String: Any]?) -> CIDetector' 不能转换为 '(String, CIContext?, [String: Any]?) -> CIDetector?'
//When initiating
let detector: CIDetector? = CIDetector(ofType: CIDetectorTypeFace, context: nil, options: [CIDetectorAccuracy: CIDetectorAccuracyHigh])
我只在尝试存档时收到错误消息。当我跑步时,一切正常。