Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的类添加了一些属性,我更改了类的 initWithCoder 以解析出新类型。如果存档文件仍在使用旧格式,这会导致崩溃。我如何明智地实现代码,而不会导致类中的属性随时间变化而导致崩溃?