ios xml 转 NSDictionary

 NSURL *url = [NSURL URLWithString:url1];
        
        NSString *xmlString = [[NSString alloc] initWithContentsOfURL:url encoding:NSUTF8StringEncoding error:NULL];
        NSDictionary *dic = [NSDictionary dictionaryWithXMLString:xmlString];
        

https://github.com/nicklockwood/XMLDictionary

 

 

posted @ 2016-03-02 20:36  人生路1/5  阅读(368)  评论(0编辑  收藏  举报