I’m having some problems working with NSStrings in Objective C… the code below returns a warning, saying:
“‘NSString’ may not respond to ‘-stringByReplacingOccurancesOfString:withString:”
NSString* NewWord = [Word stringByReplacingOccurancesOfString:@"!"
withString:@""];
What am I doing wrong? Any help is greatly appreciated – thanks
It’s a spelling error. The method name is actually
stringByReplacingOccurrencesOfString.