I want to set a text field to look through a switch statement to find the corresponding case. Can I just do that like this?
switch(textField){
case 'someCase':
// do something
break;
default:
// do something else
break;
}
Considering I already created an outlet for it in the @interface file and have connected a button to this as an action (in the @implementation file).