0

I am creating a virtual keyboard for my application via Input Method Kit (IMK).

However I am not able to simulate a keyboard event by pressing a button.

Is there any library I can used for keyboard event simulation?

Are there any reference materials/solutions for this problem?

4

1 回答 1

2

请参阅IMKTextInput 协议参考,您需要调用insertText:replacementRange:

[client insertText:text replacementRange:NSMakeRange(NSNotFound, NSNotFound)];

text的实例在哪里NSString

于 2009-12-22T08:26:09.170 回答