我是Swift4的新手。我试图使用Codable使我的struct类型对象可编码&可解码为JSON。这是我的struct Productpublic struct Product: Codable { public varisSold = “is_sold”}
编译器告诉我错误:'UIImage’ doesn’t conform to ‘
在苹果中发现,Codable协议是由Encodable和Decodable组成的。因此,现在,假设我实现了以下类, var name: String var name: String var name: String那么,在X**,** Y 和 Z**?**这两个类之间有什么功能差异吗?
如果没有尊重,为什