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.
Also look up NSCountedSet. It can help you keep count of multiple instances of the same character.
For example, from the docs:
countForObject: Returns the count associated with a given object in the receiver.
- (NSUInteger)countForObject:(id)anObject
Parameters anObject The object for which to return the count.
Return Value The count associated with anObject in the receiver, which can be thought of as the number of occurrences of anObject present in the receiver.