标签:blog io ar os for on 数据 2014 log
// 当服务端接口没做好时,本地可以构造假数据,并转换为json数据 NSError *error; NSString *dataStr = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"indEditor" ofType:@"txt"] encoding:NSUTF8StringEncoding error:&error]; NSData *jsonData = [dataStr dataUsingEncoding:NSUTF8StringEncoding]; NSError *jerror; NSDictionary* Adata = [NSJSONSerialization JSONObjectWithData:jsonData options:kNilOptions error:&jerror];
标签:blog io ar os for on 数据 2014 log
原文地址:http://blog.csdn.net/alincexiaohao/article/details/41863305