diff --git a/Framework/LEEAlert/LEEAlert.xcodeproj/project.pbxproj b/Framework/LEEAlert/LEEAlert.xcodeproj/project.pbxproj index a090d76..24e3d1a 100644 --- a/Framework/LEEAlert/LEEAlert.xcodeproj/project.pbxproj +++ b/Framework/LEEAlert/LEEAlert.xcodeproj/project.pbxproj @@ -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; @@ -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; diff --git a/LEEAlert.podspec b/LEEAlert.podspec index 5bb5e36..6ceaf0c 100644 --- a/LEEAlert.podspec +++ b/LEEAlert.podspec @@ -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" diff --git a/LEEAlert/LEEAlert.h b/LEEAlert/LEEAlert.h index 7d87d75..8228f24 100644 --- a/LEEAlert/LEEAlert.h +++ b/LEEAlert/LEEAlert.h @@ -12,7 +12,7 @@ * * @author LEE * @copyright Copyright © 2016 - 2020年 lee. All rights reserved. - * @version V1.4.1 + * @version V1.4.2 */ #import diff --git a/LEEAlert/LEEAlert.m b/LEEAlert/LEEAlert.m index 691de0d..486ee66 100644 --- a/LEEAlert/LEEAlert.m +++ b/LEEAlert/LEEAlert.m @@ -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" @@ -1077,7 +1077,9 @@ + (void)closeWithIdentifier:(NSString *)identifier force:(BOOL)force completionB completionBlock(); } + } else { + completionBlock(); } } @@ -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 diff --git a/LEEAlert/LEEAlertHelper.h b/LEEAlert/LEEAlertHelper.h index 1b44587..4a5e3f7 100644 --- a/LEEAlert/LEEAlertHelper.h +++ b/LEEAlert/LEEAlertHelper.h @@ -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 diff --git a/UPDATELOG.md b/UPDATELOG.md index a469ccc..756a0ca 100644 --- a/UPDATELOG.md +++ b/UPDATELOG.md @@ -1,6 +1,10 @@ # LEEAlert - 更新日志 +V1.4.2 +============== +优化关闭方法回调 现在队列中无论是否存在正在显示的 回调Block都会被调用. + V1.4.1 ============== 优化ActionSheet内部视图结构.