We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c3cc0f commit d418b6fCopy full SHA for d418b6f
TPKeyboardAvoiding/UIScrollView+TPKeyboardAvoidingAdditions.m
@@ -84,14 +84,14 @@ - (void)TPKeyboardAvoiding_keyboardWillShow:(NSNotification*)notification {
84
85
self.contentInset = [self TPKeyboardAvoiding_contentInsetForKeyboard];
86
87
+ self.scrollIndicatorInsets = self.contentInset;
88
+ [self layoutIfNeeded];
89
CGFloat viewableHeight = self.bounds.size.height - self.contentInset.top - self.contentInset.bottom;
90
[self setContentOffset:CGPointMake(self.contentOffset.x,
91
[self TPKeyboardAvoiding_idealOffsetForView:firstResponder
92
withViewingAreaHeight:viewableHeight])
- animated:NO];
93
+ animated:YES];
94
- self.scrollIndicatorInsets = self.contentInset;
- [self layoutIfNeeded];
95
96
[UIView commitAnimations];
97
}
0 commit comments