3
代码:参数类型“[?字符串]”不符合预期型“AnyObject”
var contactArray = [nameField.text, addressField.text, phoneField.text]
NSKeyedArchiver.archiveRootObject(contactArray, toFile: dataFilePath!)
//Error on contactArray: Argument type '[String?]' does not conform to expected type 'AnyObject'
由于contactArray
是一个非可选值,我不能强迫它解开,我该怎么办?