No switch takes an integer you need if then else if construct
if ([textfield.text isequaltostring:@"someCase"]) {
// do something
} else if ([textfield.text isequaltostring:@"anotherCase"]) {
// do something else
} else {
// do yet another thing
}