Commit b8e1ce00 authored by guanghui.shi's avatar guanghui.shi

弹窗,智能搜索修改

parent 0cf20e24
...@@ -104,7 +104,10 @@ static NSString * floats_pop_sets = @"floats_pop_sets"; ...@@ -104,7 +104,10 @@ static NSString * floats_pop_sets = @"floats_pop_sets";
self.popIndexs = [NSMutableArray arrayWithCapacity:1]; self.popIndexs = [NSMutableArray arrayWithCapacity:1];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(removeAllPopViews) name:ModelCenterUserLoginNotification object:nil]; self.floatsPopViews =[NSMutableArray array];
self.activePopViews = [NSMutableArray array];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(removeAllPopViews) name:ModelCenterUserLogOutNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(resetAllPopViews) name:ModelCenterUserLoginNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(resetAllPopViews) name:ModelCenterUserLoginNotification object:nil];
} }
return self; return self;
...@@ -142,7 +145,7 @@ static NSString * floats_pop_sets = @"floats_pop_sets"; ...@@ -142,7 +145,7 @@ static NSString * floats_pop_sets = @"floats_pop_sets";
/// 重新设置所有的弹窗 /// 重新设置所有的弹窗
- (void)resetAllPopViews - (void)resetAllPopViews
{ {
[self removeAllPopViews];
} }
#pragma mark - 网络模块 #pragma mark - 网络模块
......
...@@ -216,9 +216,13 @@ static SystemManager * shareManager = nil; ...@@ -216,9 +216,13 @@ static SystemManager * shareManager = nil;
if ([self validatePasteboardString]) { if ([self validatePasteboardString]) {
QGPasteAlertView * alertView = [[QGPasteAlertView alloc] initWithPasteStr:pasteboardStr]; QGPasteAlertView * alertView = [[QGPasteAlertView alloc] initWithPasteStr:pasteboardStr];
[alertView showInView:nil]; [alertView showInView:nil];
//清空粘贴板
[UIPasteboard generalPasteboard].string = @""; //保存
[QGCacheManager.shareCacheManager removeAppConfigWithKeys:@[kPasteboardCurrentContentKey]]; [[QGCacheManager shareCacheManager] setAPPConfigValue:pasteboardStr forKey:kPasteboardCurrentContentKey];
self.pasteboardString = pasteboardStr;
// //清空粘贴板
// [UIPasteboard generalPasteboard].string = @"";
// [QGCacheManager.shareCacheManager removeAppConfigWithKeys:@[kPasteboardCurrentContentKey]];
__block NSString * searchText = pasteboardStr; __block NSString * searchText = pasteboardStr;
alertView.searchBlock = ^{ alertView.searchBlock = ^{
NSMutableDictionary *param = [NSMutableDictionary dictionary]; NSMutableDictionary *param = [NSMutableDictionary dictionary];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment