我是swift的新手,我想扩展NSCoding以符合URL类型。我需要定义一个输入和输出类型,并且总是得到错误Type 'URL' does not conform to protocol 'NSCoding'。//what it looks like before entering types
//whatit
我查了一下,发现为了归档PFFile,它也应该符合NSCoding协议,但显然不符合,所以我把这些文件添加到我的项目https://github.com/eladb/Parse-NSCoding中。libc++abi.dylib: terminating with uncaught exception of type NSException 这是我的班级: class NPAd: PFObject, NSCoding