Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 27th, 2012  |  syntax: None  |  size: 0.74 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. trying to sort data from a dictionary in a dictionary iPhone
  2. NSEnumerator *enumerator = [finalDict keyEnumerator];
  3.  
  4.  
  5.     id key;
  6.     while ((key = [enumerator nextObject])) {
  7.         NSDictionary *arrayForLetter = [finalDict objectForKey:key];
  8.             NSLog(@"arrayForLetter %@",arrayForLetter);
  9.         NSEnumerator *myEnumerator = [arrayForLetter keyEnumerator];
  10.         id myKey;
  11.             while ((myKey = [myEnumerator nextObject])) {
  12.  
  13.         statuses=[[arrayResults alloc] initWithAppDictionary:arrayForLetter andAppID:myKey];
  14.         tweets = [[NSMutableArray alloc] init] ;
  15.         [tweets addObject:statuses];
  16.                 [countryList reloadData];  
  17.         //NSLog(@"%@ : %@", key, [finalDict objectForKey:key]);
  18.             }  
  19.     }