diff --git a/LGAlertView.podspec b/LGAlertView.podspec index ab67735..bd4c72b 100644 --- a/LGAlertView.podspec +++ b/LGAlertView.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'LGAlertView' - s.version = '2.0.9' + s.version = '2.0.10' s.platform = :ios, '6.0' s.license = 'MIT' s.homepage = 'https://github.com/Friend-LGA/LGAlertView' diff --git a/LGAlertView/LGAlertView.m b/LGAlertView/LGAlertView.m index 30da89c..a0bc401 100644 --- a/LGAlertView/LGAlertView.m +++ b/LGAlertView/LGAlertView.m @@ -1584,7 +1584,7 @@ - (void)showAnimated:(BOOL)animated completionHandler:(void(^)())completionHandl - (void)showAnimated:(BOOL)animated hidden:(BOOL)hidden completionHandler:(void(^)())completionHandler { - if (self.isShowing) return; + if (_showing) return; _window.windowLevel = UIWindowLevelStatusBar + (_windowLevel == LGAlertViewWindowLevelAboveStatusBar ? 1 : -1); _view.userInteractionEnabled = NO; @@ -1738,7 +1738,7 @@ - (void)showComplete - (void)dismissAnimated:(BOOL)animated completionHandler:(void(^)())completionHandler { - if (!self.isShowing) return; + if (!_showing) return; _view.userInteractionEnabled = NO; @@ -1847,7 +1847,9 @@ - (void)transitionToAlertView:(LGAlertView *)alertView completionHandler:(void(^ { _view.userInteractionEnabled = NO; - [alertView showAnimated:NO hidden:YES completionHandler:^(void) + [alertView showAnimated:NO + hidden:YES + completionHandler:^(void) { NSTimeInterval duration = 0.3; @@ -1939,7 +1941,8 @@ - (void)transitionToAlertView:(LGAlertView *)alertView completionHandler:(void(^ } completion:^(BOOL finished) { - [self dismissAnimated:NO completionHandler:^(void) + [self dismissAnimated:NO + completionHandler:^(void) { [alertView showComplete];