From c4e7d664c3d788403a6d575e6a78df00ecdccfcc Mon Sep 17 00:00:00 2001 From: Miguel Correlo Date: Thu, 24 Mar 2016 20:44:10 +0000 Subject: [PATCH] Update BSKeyboardControls.m Only became active the keyboard when the view is visible --- BSKeyboardControls/BSKeyboardControls.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BSKeyboardControls/BSKeyboardControls.m b/BSKeyboardControls/BSKeyboardControls.m index abb2321..78600b0 100644 --- a/BSKeyboardControls/BSKeyboardControls.m +++ b/BSKeyboardControls/BSKeyboardControls.m @@ -107,7 +107,7 @@ - (void)dealloc #pragma mark - #pragma mark Public Methods -- (void)setActiveField:(id)activeField +- (void)setActiveField:(UIView *)activeField { if (activeField != _activeField) { @@ -115,7 +115,7 @@ - (void)setActiveField:(id)activeField { _activeField = activeField; - if (activeField) + if (activeField && ![activeField isHidden] && activeField.alpha > 0) { if (![activeField isFirstResponder]) {