Skip to content

Commit cd85b81

Browse files
author
LS
committed
fixed bug which caused scroll view content to scroll under navigation bar after popping view controller #117
1 parent 425706a commit cd85b81

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

TPKeyboardAvoiding/UIScrollView+TPKeyboardAvoidingAdditions.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ - (void)TPKeyboardAvoiding_keyboardWillShow:(NSNotification*)notification {
5959

6060
UIView *firstResponder = [self TPKeyboardAvoiding_findFirstResponderBeneathView:self];
6161

62+
if (!firstResponder) {
63+
return;
64+
}
65+
6266
state.keyboardRect = keyboardRect;
6367
state.keyboardVisible = YES;
6468
state.priorInset = self.contentInset;

0 commit comments

Comments
 (0)