Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
What do you mean ? What character ? What are you trying to escape ?

What does your input look like, what output do you expect ?

What have you tried ? How did it fail ?

Code ?
 
how to escape special characters at once in nsstring......

Assuming you are replacing characters and not character sequences:

Code:
NSCharacterSet *theCharacterSet = [NSCharacterSet characterSetWithCharactersInString:@"+-*!%$/_"];

newString = [[oldString componentsSeparatedByCharactersInSet:theCharacterSet] componentsJoinedByString:@""];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.