Checking for multiple characters in nsstring
<p>hi
  i have a string and i want to check for the multiple characters in this string the following code i working fine for one character how to check for the multiple characters. </p>

<pre><code>NSString *yourString = @"ABCCDEDRFFED"; // For example
NSScanner *scanner = [NSScanner scannerWithString:yourString];

NSCharacterSet *charactersToCount = @"C" // For example
NSString *charactersFromString;

if (!([scanner scanCharactersFromSet:charactersToCount intoString:&amp;charactersFromString])) {
    // No characters found
    NSLog(@"No characters found");
}

NSInteger characterCount = [charactersFromString length];
</code></pre>
