Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
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 Resposta
0
You should make the text that was written in textField is a string