我有一个UITextView. 我将委托myTextView设置为self,当我进行正常编辑时,此方法调用得很好:
- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text
{
NSLog(@"Called");
}
在我的应用程序中,我调用了我的代码:[myTextView insertText:@"Hello World"];. 当我这样做时,我需要textView:shouldChangeTextInRange:replacementText:在插入文本后调用。我该怎么做呢?