0
Help with buttons in Swift!!!
Need help updating text in a function?? Swift Code Iâm trying to get the textLabel.text to update to the userâs entry into the textField once the âSet Textâ button is tapped. I know the code is supposed to go inside the setTextButtonTapped function but Iâm stuck. @IBOutlet weak var textLabel: UILabel! @IBOutlet weak var textField: UITextField! @IBAction func setTextButtonTapped(_sender: UIButton) { // ??? }
1 Answer
0
You should make the text that was written in textField is a string