Answers for "text field passing data"

0

text field passing data

override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        let secondController = segue.destination as! TwoViewController
        secondController.theLabel = textField.text!
    }
    
    @IBAction func buttonEnterTap(_ sender: Any) {
        if textField.text != "" {
            performSegue(withIdentifier: "segueOne", sender: self)
        }
    }
Posted by: Guest on April-13-2020

Code answers related to "text field passing data"

Code answers related to "Swift"

Browse Popular Code Answers by Language