It is possible to show keyboard without using UITextField and UITextView iphone app?

前端 未结 6 1205
执笔经年
执笔经年 2021-01-31 15:53

I am working in iPhone messaging based app.

I want to show keyboard with keyboard inputAccessoryView in keyboard without using UITextView and

6条回答
  •  一个人的身影
    2021-01-31 16:24

    You can try the answers on these other SO posts:

    • Use the system keyboard without a UITextView or UITextField

    • iphone keyboard without textview

    You can also try this:

    UIKeyboard *keyboard = [[[UIKeyboard alloc] initWithFrame: CGRectMake(0.0f,          contentRect.size.height - 216.0f, contentRect.size.width, 216.0f)] autorelease];
    [keyboard setReturnKeyEnabled:NO];
    [keyboard setTapDelegate:editingTextView];
    [inputView addSubview:keyboard];
    

提交回复
热议问题