Henry
Henry

Reputation: 587

How do I print property of object with given address in LLDB?

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?

Upvotes: 8

Views: 7701

Answers (1)

Octaviano Putra
Octaviano Putra

Reputation: 644

Cast it to the object type. Example:

po ((UIView *) 0x12345).layer

Upvotes: 22

Related Questions