iOS 개발 및 목표 -c에 매우 새로운 기능입니다. ( Bannana, 애플 :키없이 NSMutableDictionary 값에 액세스합니까?
2013년 2월 3일 19 : 15 : 37.081 TestConnection [24510 : C07] 사전
는 이제 NSLog이 보여줍니다 : 나는 다음과 같은 방법을 SomeCheese)-(NSMutableArray *)fetchDatabaseJSON{ NSURL *url = [NSURL URLWithString:@"http://www.ios.com/ios/responseScript.php"]; NSError *error = nil; NSURLRequest *request = [NSURLRequest requestWithURL:url]; NSData *data = [NSURLConnection sendSynchronousRequest:request returningResponse:NULL error:&error]; //jsonArray = [NSJSONSerialization JSONObjectWithData:data options:0 error:&error]; //NSLog(@"Array: %@",[jsonArray objectAtIndex:0]); jsonDictionary = [NSJSONSerialization JSONObjectWithData:data options:0 error:&error]; NSLog(@"Dictionary: %@", jsonDictionary); return jsonArray; }
내가 알고있는 것으로부터 사전에있는 것이 모두 키 - 값을 가지고 있지 않다는 것을 알았습니다. 어떻게 이럴 수있어? 어떻게 해결할 수 있습니까? 사전 작업을 쉽게 할 수있는 키를 갖고 싶습니다.
감사합니다,