Bartłomiej Semańczyk
Bartłomiej Semańczyk

Reputation: 61834

How to get NSLayoutConstraint's identifier by Its pointer?

I setup in Storyboard identifier for each constraint:

enter image description here

Now I get error with unsatisfiable constraints. I try to debug this by printing constraint's pointer:

po 0x17db78d0

Now to order investigate what constraint it is, I would like to print its identifier just like:

po 0x17db78d0.identifer.

...but it is not working. I get an error:

error: hexadecimal floating constants require an exponent

error: 1 errors parsing expression

Hence, how to print identifier for specific NSLayoutConstraint?

Upvotes: 2

Views: 715

Answers (1)

marosoaie
marosoaie

Reputation: 2371

po ((NSLayoutConstraint *)0x17db78d0).identifier

Upvotes: 2

Related Questions