Why this code gives me the following errors?
"use of undeclared identifier baseURL"
and
"Unexpected Interface name NSString, expected expression"
here is the entire block of code
switch (type) {
case 1:
NSString *baseURL = [NSString stringWithString:@"http://www.myserver.net/somephp/"];
NSString *finalURL = [baseURL stringByAppendingString:@"?i="];
break;
case 2:
NSString *finalURL = [baseURL stringByAppendingString:@"?n="];
break;
default:
break;
}