UITextView
andを使用せずに UIKeyboard を表示しようとしていUITextField
ます。私のアプリでキーボードを表示するために、以下のソースコードに従っています。
UIKeyboard *keyboard = [[[UIKeyboard alloc] initWithFrame: CGRectMake(0.0f, 220.0f, 320.0f, 216.0f)] autorelease];
[keyboard setReturnKeyEnabled:NO];
[keyboard setTapDelegate:editingTextView];
しかし、以下のエラーを示すコード、
Use of undeclared identifier 'UIKeyboard'
Use of undeclared identifier 'keyboard'
誰でもこのエラーを解決するのを手伝ってくれますか? UITextView
とUITextField
?を使用せずにキーボードを表示する正しい方法を教えてください。