Getting the hexadecimal address of an instance in Xcode

Is there a way to get the hexadecimal address of the instance object in the Xcode debug window via NSLog?

I have a collection of NSArray and NSDictionary objects, and I want to get the address of the instance, not the contents.

Trying [obj description] will tell me the content, but not the address.

+3
source share
1 answer
NSLog(@"%p", objcObj);

The address of the object will be printed.

+11
source

Source: https://habr.com/ru/post/1762741/


All Articles