我有一個JSON代碼網頁:JSON到NSMutableArray裏與AFNetworking
[
{"url":"event.com","name":"Event name","event":"Event"},
{"url":"event.com","name":"Event name 2","event":"Event"},
{"url":"event.com","name":"Event name 3","event":"Event 3sw"}
]
我需要這個數據被存儲在NSMutableArray
,這樣,用一個循環:
[eventsArray addObject:[NSArray arrayWithObjects:url,name,event, nil]];
[eventsArray addObject:[NSArray arrayWithObjects:url,name,event, nil]];
[eventsArray addObject:[NSArray arrayWithObjects:url,name,event, nil]];
如何可能,也許與AFNetworking?
入住這裏http://stackoverflow.com/questions/ 9252100/parsing-json-string-to-a-nsmutablearray –