Skip to content

Commit

Permalink
Fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Friend-LGA committed Nov 16, 2015
1 parent 7defffe commit c8b2b81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LGAlertView.podspec
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
11 changes: 7 additions & 4 deletions LGAlertView/LGAlertView.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1738,7 +1738,7 @@ - (void)showComplete

- (void)dismissAnimated:(BOOL)animated completionHandler:(void(^)())completionHandler
{
if (!self.isShowing) return;
if (!_showing) return;

_view.userInteractionEnabled = NO;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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];

Expand Down

0 comments on commit c8b2b81

Please sign in to comment.