Skip to content

Commit

Permalink
优化关闭方法回调 现在队列中无论是否存在正在显示的 回调Block都会被调用.
Browse files Browse the repository at this point in the history
  • Loading branch information
lixiang1994 committed Oct 10, 2020
1 parent ffba22e commit 6515cb6
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Framework/LEEAlert/LEEAlert.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.4.1;
MARKETING_VERSION = 1.4.2;
PRODUCT_BUNDLE_IDENTIFIER = com.lee.alert;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -325,7 +325,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.4.1;
MARKETING_VERSION = 1.4.2;
PRODUCT_BUNDLE_IDENTIFIER = com.lee.alert;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand Down
2 changes: 1 addition & 1 deletion LEEAlert.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "LEEAlert"
s.version = "1.4.1"
s.version = "1.4.2"
s.summary = "优雅的Alert ActionSheet"

s.homepage = "https://github.com/lixiang1994/LEEAlert"
Expand Down
2 changes: 1 addition & 1 deletion LEEAlert/LEEAlert.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @author LEE
* @copyright Copyright © 2016 - 2020年 lee. All rights reserved.
* @version V1.4.1
* @version V1.4.2
*/

#import <Foundation/Foundation.h>
Expand Down
9 changes: 7 additions & 2 deletions LEEAlert/LEEAlert.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @author LEE
* @copyright Copyright © 2016 - 2020年 lee. All rights reserved.
* @version V1.4.1
* @version V1.4.2
*/

#import "LEEAlert.h"
Expand Down Expand Up @@ -1077,7 +1077,9 @@ + (void)closeWithIdentifier:(NSString *)identifier force:(BOOL)force completionB

completionBlock();
}

} else {

completionBlock();
}
}
Expand All @@ -1089,8 +1091,11 @@ + (void)closeWithCompletionBlock:(void (^)(void))completionBlock{
LEEBaseConfig *item = [LEEAlert shareManager].queueArray.lastObject;

if ([item respondsToSelector:@selector(closeWithCompletionBlock:)]) [item performSelector:@selector(closeWithCompletionBlock:) withObject:completionBlock];

} else {

completionBlock();
}

}

#pragma mark LazyLoading
Expand Down
2 changes: 1 addition & 1 deletion LEEAlert/LEEAlertHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @author LEE
* @copyright Copyright © 2016 - 2020年 lee. All rights reserved.
* @version V1.4.1
* @version V1.4.2
*/

#ifndef LEEAlertHelper_h
Expand Down
4 changes: 4 additions & 0 deletions UPDATELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# LEEAlert - 更新日志

V1.4.2
==============
优化关闭方法回调 现在队列中无论是否存在正在显示的 回调Block都会被调用.

V1.4.1
==============
优化ActionSheet内部视图结构.
Expand Down

0 comments on commit 6515cb6

Please sign in to comment.