Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7047067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:43:33+00:00 2026-05-28T02:43:33+00:00

OK I have looked and looked and I think I am missing something about

  • 0

OK I have looked and looked and I think I am missing something about custom keyboards and inserting text into a UITextField. Like many people I am creating a UIView custom keyboard with my own set of key caps on custom UIButtons. I then assign this view to the UITextField’s inputView and then my keyboard pops up when that text field becomes the first responder. Internal to the keyboard I capture button actions and translate them to what would be keystrokes.

But from here I am puzzled about how to best send my keystrokes to the text field. I have seen plenty of examples like iOS Custom Keyboard Updating Text Field In Parent View and Return Inputs To UITextfield With Custom Inputview and How To Push Key Value Into UITextView From Custom Keyboard In iOS where the solution seems to be to embed a pointer to the target UITextField inside the custom view.

This does not seem right to me, as for multiple UITextFields either I have to have to manually change references on a single custom keyboard whenever a new text field becomes the first responder, or I have to carry around a matching custom keyboard for each text field I want to support.

It seems to me that a keyboard should just translate touches into tokens and send those tokens up the line to be interpreted by whoever receives them (first responder?). iPad For iPhone Developers 101 Custom Input View Tutorial seems to do this, but creates a custom protocol to do so. I imagine (actually a SWAG – Scientific Wild Arsed Guess) that the standard iOS keyboards operate like that, but use a specific protocol to pass along the keystrokes. So what I want to be able to do is to manually generate the same chain of events/messages that the standard keyboard does.

So how can I do this? Or can I even do this with public APIs? Or is the operation of the standard keyboards bound too tightly to the UITextField?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:43:33+00:00Added an answer on May 28, 2026 at 2:43 am

    This is a very open ended question. Really, it’s up to you to pick what you want. Apple’s documentation states this:

    The subviews of an input view and input accessory view can be anything you want. If they are buttons or other controls, you need to specify targets and actions for each control and implement the associated action methods to perform data input or manipulation.

    You could also make a UITextField subclass and explicitly implement the getter for inputView to return a pointer to your custom keyboard view class. In this getter you can set up a UIControl-like target/action system as you suggest earlier. Doing it this way removes the need to set the custom keyboard from the outside–it’s all handled internally. It also puts that code into only one place.

    Once the custom text field resigns first responder, you can strip the text field’s pointer out of the keyboard.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've looked all over for an answer, but it seems like I'm missing something
I have looked at many other threads that show how to use accelerometer values,
I have looked at questions like this , this , this and this ,
I have looked at several options like: * http://blog.waynehartman.com/archive/2012/01/07/uistoryboard-on-ios-5-the-good-the-bad-and-the.aspx * UIPopoverController Anchor Position *
I have been given an exercise about anagrams and it looked so really easy
Have looked quite hard for this answer but having no luck. I have 3
I have looked on the web to find a list of all Python keywords
I have looked around on Google and StackOverflow for the answer to this question,
I have looked all over and cannot figure out why this code isn't working.
I have looked but have not found a specific answer for changing just one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.