UIKeyboardFrameChangedByUserInteraction
il tasto non torna 1 tutto il tempo in cui la tastiera si divide.
Di seguito sono riportati i valori chiave del dizionario delle informazioni utente completo su UIKeyboardDidShowNotification
/UIKeyboardDidHideNotification
.
2012-07-11 11:52:44.701 Project[3856:707] keyboardDidShow: {
UIKeyboardBoundsUserInfoKey = "NSRect: {{0, 0}, {1024, 352}}";
UIKeyboardCenterBeginUserInfoKey = "NSPoint: {512, 944}";
UIKeyboardCenterEndUserInfoKey = "NSPoint: {512, 592}";
UIKeyboardFrameBeginUserInfoKey = "NSRect: {{-352, 0}, {352, 1024}}";
UIKeyboardFrameChangedByUserInteraction = 0;
UIKeyboardFrameEndUserInfoKey = "NSRect: {{0, 0}, {352, 1024}}";
}
2012-07-11 11:52:45.675 Project[3856:707] keyboardDidHide: {
UIKeyboardBoundsUserInfoKey = "NSRect: {{0, 0}, {1024, 352}}";
UIKeyboardCenterBeginUserInfoKey = "NSPoint: {512, 592}";
UIKeyboardCenterEndUserInfoKey = "NSPoint: {512, 944}";
UIKeyboardFrameBeginUserInfoKey = "NSRect: {{0, 0}, {352, 1024}}";
UIKeyboardFrameChangedByUserInteraction = 0;
UIKeyboardFrameEndUserInfoKey = "NSRect: {{-352, 0}, {352, 1024}}";
}
Invece è possibile utilizzare UIKeyboardCenterBeginUserInfoKey
o UIKeyboardCenterEndUserInfoKey
chiavi per essere avvisato quando si divide la tastiera.
Spero che questo aiuti!
Apprezzerei un aggiornamento su come avete risolto questo! –
provo risposta su questa domanda nel [qui] [1] [1]: http://stackoverflow.com/a/17567217/887325 – Bimawa