What is the diffefence between UIKeyboardFrameBeginUserInfoKey and UIKeyboardFrameEndUserInfoKey ?
Does that mean that the “begin” one returns a value that differs from what the “end” one returns?
Thanks !
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.
The UIKeyboardFrameBeginUserInfoKey will return the frame of the keyboard before the animation begins. The UIKeyboardFrameEndUserInfoKey will return the frame of the keyboard after the animation has completed. As an example, take the following snippet of code:
If you were to print the values of
beginFrameandendFramein the debug window, you might find something like this:So on an iPhone, this is showing that the keyboard will animate in from the bottom of the screen. The size of the keyboard doesn’t change (as expected), but the y co-ordinates show the beginning and ending position of the keyboard.