Skip to content
Alfie Hanssen edited this page Nov 20, 2013 · 1 revision
int main(int argc, char * argv[])
{
    @autoreleasepool {
 
        NSDictionary *myInfo = @{@"name":@"Alfie",
                               @"age":@34,
                               @"height":@6.33};

        NSArray *allKeys = [myInfo allKeys];
        
        // Create a for loop that loops through allKeys
        // With each iteration of the loop, print the key:value pair
        // You can access the value using the NSDictionary instance method "valueForKey:"
        // Your code here:
        // ...

        
//        UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
    }
}

NSDictionary Class Ref

2013-11-17 14:41:37.520 ObjcBasics[13163:a0b] age : 34
2013-11-17 14:41:37.521 ObjcBasics[13163:a0b] name : Alfie
2013-11-17 14:41:37.521 ObjcBasics[13163:a0b] height : 6.33