Post

Replies

Boosts

Views

Activity

I am not finding text here in this code below
class SecondViewController: UIViewController {     @IBOutlet weak var myNameTextField: UITextField!              @IBOutlet var myNameLabel: UIView!               override func viewDidLoad() {         super.viewDidLoad()         // Do any additional setup after loading the view.     }          @IBAction func onSubmitClick(_ sender: Any) {                  if(myNameTextField.text != ""){             myNameLabel.text=myNameTextField.text          }     }
4
0
1.4k
Jul ’22
Getting error when I am going from 1st view to 2nd view controller
Thread 1: "[<xcodeBasicsRevisedPlus.SecondViewController 0x12b714030> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key onSubmitClick." ---- This is an error
Replies
2
Boosts
0
Views
585
Activity
Jul ’22
I am not finding text here in this code below
class SecondViewController: UIViewController {     @IBOutlet weak var myNameTextField: UITextField!              @IBOutlet var myNameLabel: UIView!               override func viewDidLoad() {         super.viewDidLoad()         // Do any additional setup after loading the view.     }          @IBAction func onSubmitClick(_ sender: Any) {                  if(myNameTextField.text != ""){             myNameLabel.text=myNameTextField.text          }     }
Replies
4
Boosts
0
Views
1.4k
Activity
Jul ’22