With iOS 7 Apple introduced UIInputView
, which allows you to add a custom view above the keyboard that looks like this (you can adjust the height):
The docs state that:
The UIInputView class is designed to match the appearance of the standard system keyboard when used as an input view with a responder. When defining your own custom input views or input accessory views, you can use a UIInputView object as the root view and add any subviews you want to create your input view. The input view and its subviews receive tinting and blur effects based on the options you specify at initialization time.
What I do not understand, however, is how I can add additional row of buttons that look like standard keys above the keyboard (such as here in Fantastical):
Is it possible to a) correctly style system UIButtons so that they appear like keys or b) is there a library that simplifies the rendering of custom keys?
With iOS 8, Apple has made it possible to create custom keyboards that will be able to be used system wide in other apps. You can now ship a custom keyboard with your app and users will be able to choose it as the keyboard to use for every app that requires text input.
Here is a project of an iOS keyboard that mimics the system keyboard: https://github.com/acoomans/ACKeyboard
You could reuse the ACKey as keys for your keyboard!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With