Answers for "for in to iterate over items in a dictionary in swift"

0

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]);
Posted by: Guest on February-17-2020

Code answers related to "for in to iterate over items in a dictionary in swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language