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
精通CSS(第2版)
[英] Andy Budd、[英] Simon Collison、[英] Cameron Moll / 陈剑瓯 / 人民邮电出版社 / 2010-5 / 49.00元
本书汇集了最有用的CSS技术,介绍了CSS的基本概念和最佳实践,结合实例探讨了图像、链接和列表的操纵,还有表单设计、数据表格设计、纯CSS布局等核心CSS技术。此外,书中着眼于创建跨浏览器的技术,讨论了bug及其捕捉和修复技术,还将所有技术组合成两个精彩的实例,讲述这些技术的工作原理和实际用法。 本书适合具有HTML和CSS基础知识的读者阅读。一起来看看 《精通CSS(第2版)》 这本书的介绍吧!
