2011-08-09 94 views

回答

1

使用SBJson

NSString *json = @"{lhs: "2 U.S. dollars",rhs: "89.7988506 Indian rupees",error: "",icc: true}" 

NSDictionary *jsonDict = [json JSONValue]; 

NSString *lhs = [jsonDict objectForKey:@"lhs"]; 
NSString *rhs = [jsonDict objectForKey:@"rhs"]; 
... 
0

Here是教程,以帮助你......

+0

虽然这在理论上可以回答这个问题,[但最好(HTTP://meta.stackexchange .com/q/8259)在这里包括答案的基本部分,并提供供参考的链接。 – Kev