Is it possible to decrease the height of the keyboard without auto layout in Swift 3?

前端 未结 1 467
长发绾君心
长发绾君心 2021-01-25 22:46

I need to decrease the height of the keyboard programatically. Is there any way I can do it? I have found that we can reduce height, using keyboard extensions but I tried and it

相关标签:
1条回答
  • 2021-01-25 23:13

    You cannot modify the frame or the look of the keyboard, since it works kind of like an overlay over your app and it's not a direct subview in the window where your app lives.

    You can create a custom keyboard for this approach, but remember to follow the iOS Human Interface Guidelines.

    You can also create a custom view that provides input (for e.g. a bunch UIButtons that append a letter to a UITextView if you press them).

    0 讨论(0)
提交回复
热议问题