AutomaticCoder
- 授权协议: 未知
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/zhangxigithub/AutomaticCoder
软件介绍
Automatic Coder 可根据 JSON 字符串自动生成对应的 Objective-C 处理代码。
示例代码:
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://zxapi.sinaapp.com"]];
NSData *data = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];
NSDictionary *json = [data objectFromJSONData];
//init object
Person *person = [[Person alloc] initWithJson:json];
NSLog(@"%@",person.name); //http://zhangxi.me
NSLog(@"%@",person.male?@"男":@"女"); //男
NSLog(@"%ld",person.girlFriends.count); //3
//write to file
BOOL result = [NSKeyedArchiver archiveRootObject:person toFile:@"./person.data"];
NSLog(@"%@",result?@"success":@"failure"); //success
//read from file
Person *thePerson = [NSKeyedUnarchiver unarchiveObjectWithFile:@"./person.data"];
NSLog(@"%@",thePerson.name); //http://zhangxi.me
NSLog(@"%@",thePerson.male?@"男":@"女"); //男
NSLog(@"%ld",thePerson.girlFriends.count); ///3
Web Anatomy
Robert Hoekman Jr.、Jared Spool / New Riders / 2009-12-11 / USD 39.99
At the start of every web design project, the ongoing struggles reappear. We want to design highly usable and self-evident applications, but we also want to devise innovative, compelling, and exciting......一起来看看 《Web Anatomy》 这本书的介绍吧!
HTML 编码/解码
HTML 编码/解码
HEX HSV 转换工具
HEX HSV 互换工具
