【发布时间】:2009-10-27 02:15:35
【问题描述】:
我正在尝试编写一个小的概念应用程序,它在用户在 UITextView 中键入时读取字符流,并且当输入某个单词时,它会被替换(有点像自动更正)。
我研究过使用 -
(BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text;
但到目前为止我没有运气。谁能给我一个提示。
非常感谢!
大卫
【问题讨论】:
-
你是那个调用 txtView:shouldChangeTextInRange:replacementText:?
标签: iphone cocoa-touch