This works for a regular NSString
:
NSString *newString = [myString stringByReplacingOccurrencesOfString:@"," withString:@""];
But there is no such method for NSMutableAttributedString
. How could I remove all instances of a comma in an NSMutableAttributedString
?