I had a very similar problem, I made an application that was supposed to read every letter in a text view, and I have problems when autocomplete is inserted into words because it saved it as if it were a single letter. you can add each character to an array and then check if there is more than one line in length. Or you can add each character that is placed in an array, and then run something like
NSString *string = text; NSMutableArray *array = [NSMutableArray new]; for (int i=0; i<string.length; i++) { [array addObject:[string substringWithRange:NSMakeRange(i, 1)]]; }
to add each character individually by comparing two arrays, you can determine whether auto-correction was used and with which word / s. Hope this helps.
Jordan
source share