8

I know po 0x12345 can print the description of the object, but if I wanna print its property

( for example property frame of the object at 0x12345 ),

How could I do it?

Pang
  • 9,564
  • 146
  • 81
  • 122
Henry
  • 531
  • 3
  • 12
  • Possible duplicate of [LLDB (Swift): Casting Raw Address into Usable Type](https://stackoverflow.com/questions/29441418/lldb-swift-casting-raw-address-into-usable-type) – Leo Jul 28 '17 at 09:19

1 Answers1

20

Cast it to the object type. Example:

po ((UIView *) 0x12345).layer
Octaviano Putra
  • 624
  • 4
  • 9