-2

この一連のコードを実行する必要があります。

- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text {

別のメソッド (IBAction) で。

たとえば、次のように実行する必要があります。

[self performSelector:@selector(textView:shouldChangeTextInRange:replacementText:) withObject:nil afterDelay:0.1];

どうすればいいですか?

4

1 に答える 1