UIKeyboardFrameChangedByUserInteraction
Klucz nie zwraca 1 przez cały czas, gdy klawiatura dzieli.
Poniżej znajduje się pełne wartości słów kluczowych słownika użytkownika na 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}}";
}
Zamiast tego można użyć UIKeyboardCenterBeginUserInfoKey
lub UIKeyboardCenterEndUserInfoKey
klawiszy, aby otrzymywać powiadomienia, gdy podziały klawiaturowych.
Mam nadzieję, że to pomoże!
Doceniłby aktualizacji, w jaki sposób rozwiązać ten zabawie! –
staram odpowiedź na to pytanie w [tutaj] [1] [1]: http://stackoverflow.com/a/17567217/887325 – Bimawa