我在 Storyboard 中为每个约束设置标识符
:
现在我收到不可满足的约束
的错误。我尝试通过打印约束的指针来调试它:
po 0x17db78d0
现在为了调查它是什么约束,我想打印它的标识符
,就像:
po 0x17db78d0.identifer.
...但它不起作用。我收到错误:
error: hexadecimal floating constants require an exponent
error: 1 errors parsing expression
因此,如何打印特定 NSLayoutConstraint
的标识符?
最佳答案
po ((NSLayoutConstraint *)0x17db78d0).identifier
关于ios - 如何通过其指针获取 NSLayoutConstraints 标识符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31832423/