Is there any program code that can help me to pop up the virtual keyboard without using the textfield? Also, how can I get the character typed by users through the virtual keyboard ? Thank you so much for the help!!
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
To display keyboard for your custom UI element you need to make it a
UIRespondersubclass (so anyUIViewsubsclass will do) that conforms to UIKeyInput protocol and make it firstResponder.One of the required methods in that protocol is
insertText:where you can get each character that user typesYou can find example of how that method can be used here