Creating a Keyboard Extension

Have you ever wanted to type an email and use someone’s Twitter handle but could not remember it exactly? Maybe you were on a forum and you wanted to praise that book by @RedQueenCoder and…wait, was it really @invalidname? (That can’t be right, can it?)

Well, with our extension, we’re going to offer a custom keyboard that is a table of all our user’s Twitter friends. That way, when users are in this scenario, they can just switch to our keyboard, tap the name of their friend, and have that text inserted directly into the host application.

Start a keyboard extension by clicking on the project icon at the top of the file and choosing File > New > Target. This opens the Target Template sheet shown in the figure

Get iOS 9 SDK Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.