• iOS 实现从后台切换到前台-复制分享宝贝内容,打开淘宝APP,自动弹出宝贝提示信息


    - (void)applicationDidBecomeActive:(UIApplication *)application {
    
        
    
        NSLog(@"
     ===> 程序重新激活 !");
    
     
    
        
    
        NSString *str = [YIdentificationClipboard getIdentificationData];
    
        NSLog(@"strr:%ld",(long)str.length);
    
        if (str.length >= 2) {
    
            //弹窗
    
            //智能搜索 提示弹窗
    
            IdentificationClipboardView *idview = [IdentificationClipboardView initIdentificationClipboardView];
    
           idview.contentstrings = str;
    
           idview.getsearchblock = ^(NSString *searchstr) {
    
                NSLog(@"searchstrsearchstr:%@",searchstr);
    
                //跳转到搜索页面
    
                UITabBarController *tabar = (UITabBarController *)self.window.rootViewController;
    
                MainSeachJumpQueryVc *searchjumpvc = [[MainSeachJumpQueryVc alloc]init];
    
                searchjumpvc.titlename = str;
    
                UINavigationController *nav = tabar.viewControllers[tabar.selectedIndex];
    
                searchjumpvc.hidesBottomBarWhenPushed = YES;
    
                [nav pushViewController:searchjumpvc animated:YES];
    
            };
    
        }
    
     
    
    }
    

      

     

  • 相关阅读:
    唯一索引 && 主键索引
    部分函数依赖 && 完全函数依赖
    范式
    BST树、B树、B+树、B*树
    哈希表
    Bzoj4569: [Scoi2016]萌萌哒
    Bzoj 4551: [Tjoi2016&Heoi2016]树
    Bzoj3631: [JLOI2014]松鼠的新家
    HDU4746: Mophues
    BZOJ2820:YY的GCD
  • 原文地址:https://www.cnblogs.com/shenlaiyaoshi/p/8759459.html
Copyright © 2020-2023  润新知