我在Storyboard编辑器的UIViewController中添加了一个UILabel(amountLabel)。然后在swift文件viewDidLoad中,我以编程方式创建一个UITextField(paymentTextField)并尝试在amountLabel和paymentTextField之间添加约束。这是我在viewDidload中的代码:letpaymentTextField=UITextField()paymentTextField.translatesAutoresizingMaskIntoConstraints=falsepaymentTextField.fr