How to Traversal emojis in NSString There is a NSString method used to traversal substring of NSString
NSString *text = @\"2012
Below is a solution based on Jesse Rusak's suggestion, however even the UITextInputTokenizer seems to be unable to properly parse the text, unless of course the error is on my part :)
+(void)parse:(UITextField *)textfield {
id tokenizer = [textfield tokenizer];
UITextPosition *pos = textfield.beginningOfDocument;
while (true) {
UITextRange *range = [tokenizer rangeEnclosingPosition:pos withGranularity:UITextGranularityCharacter inDirection:UITextStorageDirectionForward];
NSString *oneCharacter = [textfield textInRange:range];
NSLog( @"%@", oneCharacter );
pos = [textfield positionFromPosition:pos offset:-1];
if (pos == nil) break;
}
}