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.
[NSString stringWithFormat: ...];