How can I create keyboard like buttons with UIInputView?

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?


I think this an inputAccessoryView used with the iOS keyboard. Just try by creating a UIView and adding some custom buttons to it and assigning it as the inputAccessoryView.

Here is a project of an iOS keyboard that mimics the system keyboard:

You could reuse the ACKey as keys for your keyboard!

Need Your Help

how to use odeint's tag system to do specific work for various stepper types

c++ boost odeint

I have a templated class that can perform some work with odeint's stepper classes, and I want it to be a specific (different) work for each of the categories of steppers.

Real-time Zedgraph does not respond

c# user-interface focus real-time zedgraph

My real-time does not respond any more when I change focus from it to another program. I.e. it gets stuck.