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 \"-\
This will do the work,
int numberOfOccurences = [[theString componentsSeparatedByString:@"-"] count];