How can I count the occurrence of a character in a string?
Example
String: 123-456-7890
I want to find the occurrence count of \"-\
You can use replaceOccurrencesOfString:withString:options:range: method of NSString
replaceOccurrencesOfString:withString:options:range:
NSString