在數(shù)據(jù)模型中 設(shè)置一個方法 傳入NSDictionary 中
-(instancetype)initWithDic:(NSDictionary*)dic{
self= [super init];
if(self) {
[self setValuesForKeysWithDictionary:dic];
}
return self;
}
在數(shù)據(jù)模型中 設(shè)置一個方法 傳入NSDictionary 中
-(instancetype)initWithDic:(NSDictionary*)dic{
self= [super init];
if(self) {
[self setValuesForKeysWithDictionary:dic];
}
return self;
}