I have this code
It gives me a warning but the code still works. The bottom line works just fine but the one above it gives me the warning on. The top line of code I am retrieving the string in a TextField and assigning it to an NSString that I set up and an instance variable in the header file.
stringByAppendingFormat excepts an NSString as an argument. Both lines of code are of NSString?
Code:
theClientName = clientNameTextField.text;
nameCombind = [nameCombind stringByAppendingFormat:theClientName];//warning on this line of code
nameCombind = [nameCombind stringByAppendingFormat:@" - "];
It gives me a warning but the code still works. The bottom line works just fine but the one above it gives me the warning on. The top line of code I am retrieving the string in a TextField and assigning it to an NSString that I set up and an instance variable in the header file.
stringByAppendingFormat excepts an NSString as an argument. Both lines of code are of NSString?