File tree Expand file tree Collapse file tree 6 files changed +20
-9
lines changed
Framework/LEEAlert/LEEAlert.xcodeproj Expand file tree Collapse file tree 6 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 296
296
"@executable_path/Frameworks",
297
297
"@loader_path/Frameworks",
298
298
);
299
- MARKETING_VERSION = 1.8.1 ;
299
+ MARKETING_VERSION = 1.8.2 ;
300
300
PRODUCT_BUNDLE_IDENTIFIER = com.lee.alert;
301
301
PRODUCT_NAME = "$(TARGET_NAME)";
302
302
PROVISIONING_PROFILE_SPECIFIER = "";
325
325
"@executable_path/Frameworks",
326
326
"@loader_path/Frameworks",
327
327
);
328
- MARKETING_VERSION = 1.8.1 ;
328
+ MARKETING_VERSION = 1.8.2 ;
329
329
PRODUCT_BUNDLE_IDENTIFIER = com.lee.alert;
330
330
PRODUCT_NAME = "$(TARGET_NAME)";
331
331
PROVISIONING_PROFILE_SPECIFIER = "";
Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |s |
2
2
3
3
s . name = "LEEAlert"
4
- s . version = "1.8.1 "
4
+ s . version = "1.8.2 "
5
5
s . summary = "优雅的Alert ActionSheet"
6
6
7
7
s . homepage = "https://github.com/lixiang1994/LEEAlert"
Original file line number Diff line number Diff line change 12
12
*
13
13
* @author LEE
14
14
* @copyright Copyright © 2016 - 2024年 lee. All rights reserved.
15
- * @version V1.8.1
15
+ * @version V1.8.2
16
16
*/
17
17
18
18
#import < Foundation/Foundation.h>
Original file line number Diff line number Diff line change 12
12
*
13
13
* @author LEE
14
14
* @copyright Copyright © 2016 - 2024年 lee. All rights reserved.
15
- * @version V1.8.1
15
+ * @version V1.8.2
16
16
*/
17
17
18
18
#import " LEEAlert.h"
@@ -4056,9 +4056,12 @@ - (nonnull instancetype)init
4056
4056
4057
4057
self.config .modelFinishConfig = ^{
4058
4058
4059
+ __block BOOL shouldCleanup = NO ;
4059
4060
__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
+ }
4062
4065
};
4063
4066
4064
4067
if (!strongSelf) {
@@ -4097,10 +4100,14 @@ - (nonnull instancetype)init
4097
4100
4098
4101
}
4099
4102
4100
- if ([LEEAlert shareManager ].queueArray .lastObject == strongSelf) [strongSelf show ];
4103
+ if ([LEEAlert shareManager ].queueArray .lastObject == strongSelf) {
4104
+ shouldCleanup = YES ; // 标记当前要显示的需要清理
4105
+ [strongSelf show ];
4106
+ }
4101
4107
4102
4108
} else {
4103
4109
4110
+ shouldCleanup = YES ; // 没有队列时直接显示并清理
4104
4111
[strongSelf show ];
4105
4112
4106
4113
[[LEEAlert shareManager ].queueArray addObject: strongSelf];
Original file line number Diff line number Diff line change 13
13
*
14
14
* @author LEE
15
15
* @copyright Copyright © 2016 - 2024年 lee. All rights reserved.
16
- * @version V1.8.1
16
+ * @version V1.8.2
17
17
*/
18
18
19
19
#ifndef LEEAlertHelper_h
Original file line number Diff line number Diff line change 1
1
2
2
# LEEAlert - 更新日志
3
3
4
+ V1.8.2
5
+ ==============
6
+ 修复1.8.1导致的队列不能显示后续
7
+
4
8
V1.8.1
5
9
==============
6
10
解决提前释放问题
You can’t perform that action at this time.
0 commit comments