How to get NSLayoutConstraint's identifier by Its pointer?

十年热恋 提交于 2019-12-11 02:52:43

问题


I setup in Storyboard identifier for each constraint:

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?


回答1:


po ((NSLayoutConstraint *)0x17db78d0).identifier



来源:https://stackoverflow.com/questions/31832423/how-to-get-nslayoutconstraints-identifier-by-its-pointer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!