Skip to content

Commit

Permalink
```
Browse files Browse the repository at this point in the history
/// 查询队列中是否包含某一标识
/// @param identifier 标识
+ (BOOL)containsQueueWithIdentifier:(NSString *)identifier;
```
lixiang1994 committed Oct 10, 2019
1 parent 1ec57ca commit a01df47
Showing 5 changed files with 25 additions and 4 deletions.
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.3.0"
s.version = "1.3.1"
s.summary = "优雅的Alert ActionSheet"

s.homepage = "https://github.com/lixiang1994/LEEAlert"
6 changes: 5 additions & 1 deletion LEEAlert/LEEAlert.h
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
*
* @author LEE
* @copyright Copyright © 2016 - 2019年 lee. All rights reserved.
* @version V1.3.0
* @version V1.3.1
*/

#import <Foundation/Foundation.h>
@@ -79,6 +79,10 @@ NS_ASSUME_NONNULL_BEGIN
/** 清空队列 */
+ (void)clearQueue;

/// 查询队列中是否包含某一标识
/// @param identifier 标识
+ (BOOL)containsQueueWithIdentifier:(NSString *)identifier;

/**
关闭指定标识
12 changes: 11 additions & 1 deletion LEEAlert/LEEAlert.m
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
*
* @author LEE
* @copyright Copyright © 2016 - 2019年 lee. All rights reserved.
* @version V1.3.0
* @version V1.3.1
*/

#import "LEEAlert.h"
@@ -1017,7 +1017,17 @@ + (void)clearQueue{
[[LEEAlert shareManager].queueArray removeAllObjects];
}

+ (BOOL)containsQueueWithIdentifier:(NSString *)identifier {

for (LEEBaseConfig *config in [LEEAlert shareManager].queueArray) {
if ([config.config.modelIdentifier isEqualToString:identifier]) return YES;
}

return NO;
}

+ (void)closeWithIdentifier:(NSString *)identifier completionBlock:(void (^ _Nullable)(void))completionBlock{

[self closeWithIdentifier:identifier force:NO completionBlock:completionBlock];
}

2 changes: 1 addition & 1 deletion LEEAlert/LEEAlertHelper.h
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
*
* @author LEE
* @copyright Copyright © 2016 - 2019年 lee. All rights reserved.
* @version V1.3.0
* @version V1.3.1
*/

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

# LEEAlert - 更新日志

V1.3.1
==============
```
/// 查询队列中是否包含某一标识
+ (BOOL)containsQueueWithIdentifier:(NSString *)identifier;
```

V1.3.0
==============

0 comments on commit a01df47

Please sign in to comment.