This shows you the differences between two versions of the page.
objective-c:foundation.framework:nsdictionary.h:initwithobjectsandkeys [2014/05/30 21:29] Mo |
objective-c:foundation.framework:nsdictionary.h:initwithobjectsandkeys [2024/02/16 01:12] (current) |
||
---|---|---|---|
Line 23: | Line 23: | ||
<code objc> | <code objc> | ||
- | // ** Init dictionary with entries | + | // ** Init dictionary with entries ** |
NSDictionary *myDictionary = [[NSDictionary alloc]initWithObjectsAndKeys:@"value1", @"key1", @"value2", @"key2", nil]; | NSDictionary *myDictionary = [[NSDictionary alloc]initWithObjectsAndKeys:@"value1", @"key1", @"value2", @"key2", nil]; | ||
- | // ** Output dictionary | + | // ** Output dictionary ** |
NSLog(@"myDictionary: %@", myDictionary); | NSLog(@"myDictionary: %@", myDictionary); | ||