diff --git a/TPKeyboardAvoiding/UIScrollView+TPKeyboardAvoidingAdditions.m b/TPKeyboardAvoiding/UIScrollView+TPKeyboardAvoidingAdditions.m index 172f0079..d509b69a 100644 --- a/TPKeyboardAvoiding/UIScrollView+TPKeyboardAvoidingAdditions.m +++ b/TPKeyboardAvoiding/UIScrollView+TPKeyboardAvoidingAdditions.m @@ -121,8 +121,8 @@ - (void)keyboardViewAppear:(NSString *)animationID context:(void *)context { self.keyboardAvoidingState.keyboardAnimationInProgress = true; } -- (void)keyboardViewDisappear:(NSString *)animationID finished:(BOOL)finished context:(void *)context { - if (finished) { +- (void)keyboardViewDisappear:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context { + if (finished.boolValue) { self.keyboardAvoidingState.keyboardAnimationInProgress = false; } }