From e5d34ebc964398f7f1f2238181ed71c6025d2014 Mon Sep 17 00:00:00 2001 From: "amoblin@mbp" Date: Mon, 28 Dec 2015 15:57:23 +0800 Subject: [PATCH] fix bug when keyboard hide and show quickly # Conflicts: # TPKeyboardAvoiding/UIScrollView+TPKeyboardAvoidingAdditions.m --- TPKeyboardAvoiding/UIScrollView+TPKeyboardAvoidingAdditions.m | 1 + 1 file changed, 1 insertion(+) diff --git a/TPKeyboardAvoiding/UIScrollView+TPKeyboardAvoidingAdditions.m b/TPKeyboardAvoiding/UIScrollView+TPKeyboardAvoidingAdditions.m index 853caa7..9c9b0f3 100644 --- a/TPKeyboardAvoiding/UIScrollView+TPKeyboardAvoidingAdditions.m +++ b/TPKeyboardAvoiding/UIScrollView+TPKeyboardAvoidingAdditions.m @@ -58,6 +58,7 @@ - (void)TPKeyboardAvoiding_keyboardWillShow:(NSNotification*)notification { CGRect beginKeyboardRect = [self convertRect:[[info objectForKey:_UIKeyboardFrameBeginUserInfoKey] CGRectValue] fromView:nil]; CGRect endKeyboardRect = [self convertRect:[[info objectForKey:_UIKeyboardFrameEndUserInfoKey] CGRectValue] fromView:nil]; if (CGRectIsEmpty(endKeyboardRect)) { + self.keyboardAvoidingState.keyboardVisible = NO; return; }