Suppose i don't want ",\': characters in my string then we can apply the below login to remove this from a NSString
NSCharacterSet *doNotWant = [NSCharacterSet characterSetWithCharactersInString:@"\",\\'"];
resultString = [[resultString componentsSeparatedByCharactersInSet: doNotWant] componentsJoinedByString: @""];
NSLog(@"%@", resultString);
No comments:
Post a Comment