{"response":[33689822,64091979,69682048,74160161]}
- (void)requestCompleted:(ASIHTTPRequest *)request
{
NSString *responseString = [request responseString];
NSLog(@"okRequest|| %@",responseString);
SBJSON *parser = [[SBJSON alloc] init];
// Prepare URL request to download statuses from Twitter
// Get JSON as a NSString from NSData response
NSString *json_string = [[NSString alloc] initWithString:responseString];
// parse the JSON response into an object
// Here we're using NSArray since we're parsing an array of JSON status objects
NSArray *statuses = [parser objectWithString:json_string error:nil];
// Each element in statuses is a single status
// represented as a NSDictionary
for (NSDictionary *status in statuses)
{
//all other func..
NSLog(@"%@ ", status);///This func prints only "response"
}
}
我怎樣才能在 「響應」 數字陣列? (33689822,64091979,69682048,74160161)
非常感謝!這個工程! – SevenDays 2011-05-19 07:22:14