Reputation: 35973
When I type this on console
print myArray .... myArray is a NSArray
I see this
(NSArray *) $0 = 0x00006100002494e0 @"6 objects"
How do I build a NSLog line to print this address 0x00006100002494e0
to console?
Upvotes: 0
Views: 302
Reputation: 78373
Use the %p
format specifier, which prints an address or pointer variable:
NSLog(@"Address of my array: %p", myArray);
Upvotes: 2