Answers for "uilabel set y position programmatically"

0

uilabel set y position programmatically

self.view.addSubview(button)
button.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([ 
    button.topAnchor.constraint(equalTo: self.balanceLabel.bottomAnchor,constant:30),
    button.centerXAnchor.constraint(equalTo: self.view.centerXAnchor),
])
Posted by: Guest on June-03-2021

Code answers related to "uilabel set y position programmatically"

Browse Popular Code Answers by Language