I am doing a registration process with my app where the user enters in a number that I check against my db.. anyway long story short where I pass code into
It's because of the parenthesis. By writing (blabla) it becomes an expression, which you are not using as an expressing, hence the compiler complains.
Change to [NSString stringWithFormat: ...];
and it becomes a method.
You can't just do (@"http://188.162.17.44:8777/ICService/?RegCode=%@",code)
. Use [NSString stringWithFormat:@"http://188.162.17.44:8777/ICService/?RegCode=%@", tempRegCode]
.