My actual UITextField control is embedded many layers down in an external library. Therefore I am unable to detect if it is being edited by calling
control isFirstResponder.
Is there another way to detect if the software keyboard is shown?
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.
Yes, try setting up a listener for notifications such as “UIKeyboardWillShowNotification”. In the userInfo for the notification you can get the bounds for the keyboard and thus determine if it is visible (on screen) or not. Look in UIWindow.h.