Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ios iterate through dictionary

NSDictionary *myDict = @{@"Key 1" : @"Value 1",
                         @"Key 2" : @"Value 2"}
NSEnumerator *enumerator = [myDict keyEnumerator];
id key = nil;
while((key = [enumerator nextObject]))
    NSLog(@"key=%@ value=%@", key, myDict[key]);
 
PREVIOUS NEXT
Tagged: #ios #iterate #dictionary
ADD COMMENT
Topic
Name
9+2 =