mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Corrected Array Object NSLog Call
This commit is contained in:
parent
2c89ae1cf6
commit
dcdfd9114f
@ -90,7 +90,7 @@ int main (int argc, const char * argv[])
|
||||
// Array object
|
||||
NSArray *anArray = @[@1, @2, @3, @4];
|
||||
NSNumber *thirdNumber = anArray[2];
|
||||
NSLog(@"Third number = %@", thirdObject); // Print "Third number = 3"
|
||||
NSLog(@"Third number = %@", thirdNumber); // Print "Third number = 3"
|
||||
|
||||
// Dictionary object
|
||||
NSDictionary *aDictionary = @{ @"key1" : @"value1", @"key2" : @"value2" };
|
||||
|
Loading…
Reference in New Issue
Block a user