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];
    
            };
    
        }
    
     
    
    }
    

      

     

  • 相关阅读:
    oracle数据库的增长改查
    Delete、truncate、drop删除数据的区别
    oracle数据库分页查询
    Sql语句中的null值
    RestEasy 3.x 系列之三:jsonp
    跨域请求解决方法(JSONP, CORS)
    JdbcUtils 系列1
    RestEasy 3.x 系列之一:Hello world
    JAVA中int、String的类型转换
    struts2 的验证框架validation如何返回json数据 以方便ajax交互
  • 原文地址:https://www.cnblogs.com/shenlaiyaoshi/p/8759459.html
Copyright © 2011-2022 走看看