用字典生成model的代码
生活随笔
收集整理的這篇文章主要介紹了
用字典生成model的代码
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
//用字典生成model的代碼
-(void)createModelCodeWithDictionary:(NSDictionary *)dict modelName:(NSString *)modelName{
? ? printf("\n@interface %s : Jastor\n",modelName.UTF8String);
? ? for (NSString *key in dict) {
? ? ? ? printf("@property (nonatomic, strong) NSString *%s;\n",key.UTF8String);
? ? }
? ? printf("@end\n");
?? ?
}
轉載于:https://www.cnblogs.com/guosir/p/6375248.html
總結
以上是生活随笔為你收集整理的用字典生成model的代码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MVC4 学习笔记01
- 下一篇: 高性能JS-DOM