摘要:
个人笔记,高手绕道普通方法解析xml:.h文件@property (nonatomic,strong) NSMutableArray *itemData;@property(nonatomic,assign)NSString *currentTagName;.m文件注意@synthesize上面的属性- (void)getxml{ NSString *xmlPath=[[NSString alloc] init]; xmlPath=[[NSBundle mainBundle] pathForResource:@"student" ofType:@"xml" 阅读全文
posted @ 2013-09-23 13:07
荒唐爱情
阅读(344)
评论(0)
推荐(2)
摘要:
通过使用IOS5自带解析类NSJSONSerialization方法解析JSON// //字典转json// NSDictionary *dict=[[NSMutableDictionary alloc] initWithObjectsAndKeys:@"pangran",@"name",@"male",@"sex",@"23",@"age" ,nil];// NSLog(@"%@",dict);// NSError *error;// NSData *j 阅读全文
posted @ 2013-09-23 12:03
荒唐爱情
阅读(1027)
评论(0)
推荐(1)

浙公网安备 33010602011771号