Dear TextExpander touch SDK Adopters,
We asked if you had a better workaround for forcing the UITextView to update when an expansion covers more than one line, and we're delighted to report that Greg Pierce of Agile Tortoise has offered an excellent one. His does not have any of the side effects of the one we initially provided to you, so we urge you to adopt it immediately. You can update tetestViewController.m from the GitHub repository, or you can replace the twiddleText method with the following:
- (void)twiddleText:(UITextView*)textView {
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")) {
[textView.textStorage edited:NSTextStorageEditedCharacters range:NSMakeRange(0, textView.textStorage.length) changeInLength:0];
}
}
Thanks again for sharing this, Greg. We all appreciate it.