zoukankan      html  css  js  c++  java
  • 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];
    
            };
    
        }
    
     
    
    }
    

      

     

  • 相关阅读:
    Crazypony四轴飞行器代码框架
    Python中 sys.argv[]的用法简明解释
    详解STM32的PWM输出及频率和脉宽(占空比)的计算——寄存器配置六步曲!(转)
    jquery——所有版本下载
    jsop跨域请求方式--及中文乱码解决方案
    js ---任何浏览器关闭当前网页的代码
    jquery ajax跨域请求 IE9及以下不支持---调试
    poi---Excel导入数据-ClassNotFoundException
    ajax获取json数据为undefined--原因解析
    可变参数 / 枚举--详解
  • 原文地址:https://www.cnblogs.com/shenlaiyaoshi/p/8759459.html
Copyright © 2011-2022 走看看