What is the problem here? Why can't I use 'switch'?
NSString *input;
gets(charInput);
input=[NSString stringWithUTF8String:charInput];
switch (input) { //Statement requires expression of integer type ('NSString *__strong' invalid)
case "test": //Expression is not an integer constant expression
NSLog(@"Yes it is");
break;
case "Hello": //Expression is not an integer constant expression
NSLog(@"Hey There!");
default:
break;
Thanks!