设置模型属性

#ifdef DEBUG

#define NSLog(FORMAT, ...) fprintf(stderr,"%s\n",[[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);

#else

#define NSLog(...)

#endif


NSDictionary *userAccountBasse = dict[@"accountList"][0];

//NSLog(@"%@",userAccountBasse);

for (int i = 0; i < [userAccountBasse allKeys].count; i ++) {

NSString *ss = [NSString stringWithFormat:@"@property (nonatomic, copy) NSString *%@;",[userAccountBasse allKeys][i]];

NSLog(@"%@",ss);

}

你可能感兴趣的:(设置模型属性)