Why is my VC displaced after changing the Simulator? AutoLayout
问题 Hey this is the code I use to set the constraints with auto layout for my View Elements: TimeLabel.translatesAutoresizingMaskIntoConstraints = false NSLayoutConstraint.activate([ TimeLabel.centerXAnchor.constraint(equalTo: view.centerXAnchor), TimeLabel.topAnchor.constraint(equalTo: view.topAnchor, constant: -30), TimeLabel.widthAnchor.constraint(equalToConstant: 300), TimeLabel.heightAnchor.constraint(equalToConstant: 300) ]) But it doesn't work! When I change the simulator from iPhone 11 to