I want to remove \"#\" from my string.
I have tried
NSString *abc = [@\"A#BCD#D\" stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWith
stringByTrimmingCharactersInSet removes characters from the beginning and end of your string, not from any place in it
stringByTrimmingCharactersInSet
For your purpose use stringByReplacingOccurrencesOfString:withString: method as others pointed.
stringByReplacingOccurrencesOfString:withString: