Skip to content

Commit 61405f9

Browse files
committed
1.8.2 修复1.8.1导致的队列不能显示后续
1 parent 2fbebb2 commit 61405f9

File tree

6 files changed

+20
-9
lines changed

6 files changed

+20
-9
lines changed

Framework/LEEAlert/LEEAlert.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@
296296
"@executable_path/Frameworks",
297297
"@loader_path/Frameworks",
298298
);
299-
MARKETING_VERSION = 1.8.1;
299+
MARKETING_VERSION = 1.8.2;
300300
PRODUCT_BUNDLE_IDENTIFIER = com.lee.alert;
301301
PRODUCT_NAME = "$(TARGET_NAME)";
302302
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -325,7 +325,7 @@
325325
"@executable_path/Frameworks",
326326
"@loader_path/Frameworks",
327327
);
328-
MARKETING_VERSION = 1.8.1;
328+
MARKETING_VERSION = 1.8.2;
329329
PRODUCT_BUNDLE_IDENTIFIER = com.lee.alert;
330330
PRODUCT_NAME = "$(TARGET_NAME)";
331331
PROVISIONING_PROFILE_SPECIFIER = "";

LEEAlert.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "LEEAlert"
4-
s.version = "1.8.1"
4+
s.version = "1.8.2"
55
s.summary = "优雅的Alert ActionSheet"
66

77
s.homepage = "https://github.com/lixiang1994/LEEAlert"

LEEAlert/LEEAlert.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* @author LEE
1414
* @copyright Copyright © 2016 - 2024年 lee. All rights reserved.
15-
* @version V1.8.1
15+
* @version V1.8.2
1616
*/
1717

1818
#import <Foundation/Foundation.h>

LEEAlert/LEEAlert.m

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* @author LEE
1414
* @copyright Copyright © 2016 - 2024年 lee. All rights reserved.
15-
* @version V1.8.1
15+
* @version V1.8.2
1616
*/
1717

1818
#import "LEEAlert.h"
@@ -4056,9 +4056,12 @@ - (nonnull instancetype)init
40564056

40574057
self.config.modelFinishConfig = ^{
40584058

4059+
__block BOOL shouldCleanup = NO;
40594060
__attribute__((cleanup(lee_cleanupFunc), unused)) __auto_type x = ^{
4060-
// break circular reference after leaving the scope.
4061-
strongSelf = nil;
4061+
// 只有标记为需要清理的才清理,避免影响队列机制
4062+
if (shouldCleanup) {
4063+
strongSelf = nil;
4064+
}
40624065
};
40634066

40644067
if (!strongSelf) {
@@ -4097,10 +4100,14 @@ - (nonnull instancetype)init
40974100

40984101
}
40994102

4100-
if ([LEEAlert shareManager].queueArray.lastObject == strongSelf) [strongSelf show];
4103+
if ([LEEAlert shareManager].queueArray.lastObject == strongSelf) {
4104+
shouldCleanup = YES; // 标记当前要显示的需要清理
4105+
[strongSelf show];
4106+
}
41014107

41024108
} else {
41034109

4110+
shouldCleanup = YES; // 没有队列时直接显示并清理
41044111
[strongSelf show];
41054112

41064113
[[LEEAlert shareManager].queueArray addObject:strongSelf];

LEEAlert/LEEAlertHelper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* @author LEE
1515
* @copyright Copyright © 2016 - 2024年 lee. All rights reserved.
16-
* @version V1.8.1
16+
* @version V1.8.2
1717
*/
1818

1919
#ifndef LEEAlertHelper_h

UPDATELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11

22
# LEEAlert - 更新日志
33

4+
V1.8.2
5+
==============
6+
修复1.8.1导致的队列不能显示后续
7+
48
V1.8.1
59
==============
610
解决提前释放问题

0 commit comments

Comments
 (0)