How do I remove double quotes from an NSString. Example:
//theMutableString: "Hello World"
[theMutableString replaceOccurrencesOfString:@"\"" withString:@"" options:NSCaseInsensitiveSearch range:(NSRange){0,[theMutableString length]}]
It doesn’t seem to work, maybe since I had to escape the ” in the replaceOccurrencesOfString?
Use the
NSMakeRangefunction instead of your cast. This’ll work: