jjzjj

WeatherDetails

全部标签

ios - 如何测试实现 NSCoding 的简单数据对象类?

我有一个小数据对象需要序列化和反序列化。假设它叫做WeatherDetails,它看起来像这样:WeatherDetails.h@interfaceWeatherDetails:NSObject{@private@protected}#pragmamark-Properties@property(nonatomic,copy)NSString*weatherCode;@property(nonatomic,copy)NSString*weatherDescription;@endWeatherDetails.m#import"WeatherDetails.h"@implementati