如何从不同的常量值中获取当前常量值?

How to get the current constant value from different constants value?

我为两个不同的 类 设置了约束常量,当我尝试在 wRhR(ipads) 上打印常量时,第一个常量值出现了。

我总是

  NSLog(@"this is constant %f",_txtbottomconstraints.constant);

输出:

 this is constant 240.000000  //this output is am getting in ipad.

帮我得到当前常数值谢谢:)

在 viewDidAppear 中打印

override func viewDidAppear(animated: Bool) {
        print("constraint  : \(_txtbottomconstraints.constant)");
    }