Swift iterrate a través de diccionario

Ejemplos de código

0
0

ios recorrer diccionario

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]);

En otros idiomas

Esta página está en otros idiomas

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................