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 \"-\
I did this for you. try this.
unichar findC; int count = 0; NSString *strr = @"123-456-7890"; for (int i = 0; i