I’m currently developing an OpenGL ES game for the iPhone and iPod touch.
I was wondering how I can easily pull up the UIKeyboard?
Is there an official, documented possibility to pull up a UIKeyboard without using a UITextField of UITextView?
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.
It’s not “officially” possible – you can’t access the UIKeyboard object at all while staying within Apple’s guidelines.
Creating an invisible UITextField, then calling
[textField becomeFirstResponder]would do the job – you could even subclass UITextField first, then override the delegate methodtextField:shouldChangeCharactersInRange:to redirect the text input to where you want it to go.