I am creating an app with multiple view controllers (I believe this is the best way to have multiple screens, correct me if I am wrong). When I connect a text field from my main ViewController it works fine and I get the following code.
@IBOutlet weak var typeField : UITextField!
However, when I try to connect a text field from a new ViewController I get the wrong code and cannot change the options to correct it. This is what I get.
@IBAction func typeField(_ sender: Any) {
}
I really do not know how to fix this, can anyone please help.