I want to remove "#" from my string.
I have tried
NSString *abc = [@"A#BCD#D" stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"#"]];
But it still shows the string as "A#BCD#D"
What could be wrong?
You could try
NSString *modifiedString = [yourString stringByReplacingOccurrencesOfString:@"#" withString:@""];