롤 .... 좋은! 하지만 더 단순하게 말할 것입니다.
새로운 SBJSON 파서 객체를 생성
SBJSON *parser = [[SBJSON alloc] init];
있는 NSData 객체로 다시 JSON을
NSURLRequest *request = [NSURLRequest requestWithURL:
[NSURL URLWithString:@"http://twitter.com/statuses/public_timeline.json"]];
트위터
에서 상태를 다운로드 요청을 수행하고 얻을 URL 요청을 준비
NSData *response = [NSURLConnection sendSynchronousRequest:request
returningResponse:nil error:nil];
받기 JSON NSData에서 NSString 응답으로
NSString *json_string = [[NSString alloc]
initWithData:response encoding:NSUTF8StringEncoding];
우리가 JSON 상태의 배열을 분석하고 있기 때문에 우리가있는 NSArray를 사용하는 객체 여기에 JSON의 응답을 분석하는 것은
NSArray *statuses = [parser objectWithString:json_string error:nil]
을 개체 및 상태 배열에 당신은 당신이 필요로하는 모든 데이터를 가지고있다.