Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Text Field creates action not outlet

I'm working on my first app with multiple view screens and everything worked great on the first view, I added a couple text fields and was able to connect them to the controller as Outlets and obtain the value from them, manage it and spit it back out to a label.

I tried control-dragging the text fields on the second view to the secondControllerView and the only thing available when I do so is Action, no outlet, so its a function not a variable and I also cannot connect the labels to the code at all!

Anyone know why?

like image 736
Cosmin Lungu Avatar asked Jan 03 '18 21:01

Cosmin Lungu


1 Answers

Make sure in the identity inspector you selected the class for the UIViewController you are connecting your outlets to.

enter image description here

like image 150
Kegham K. Avatar answered Oct 17 '22 14:10

Kegham K.