zoukankan      html  css  js  c++  java
  • 拨号应用返回问题

    - (void)CallOtherPartWithTelNumber:(NSString *)telNumber andType:(NSInteger)type
    {
        
        switch (type) {
                
            case 1:
                //  可以返回应用
                telNumber = [NSString stringWithFormat:@"telprompt://%@", telNumber];
                LMLog(@"打电话调用最后组合好的号码:%@--<<", telNumber);
                
                [[UIApplication sharedApplication] openURL:[NSURL URLWithString:telNumber]];
                break;
    
                
            case 2:
                //  可以返回应用
                telNumber = [NSString stringWithFormat:@"tel:%@", telNumber];
                
                LMLog(@"打电话调用最后组合好的号码:%@--<<", telNumber);
                
                if (_webView == nil) {
                    _webView = [[UIWebView alloc] initWithFrame:CGRectZero];
                }
                
                [_webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:telNumber]]];
                break;
                
            case 3:
                //  不能返回应用
                telNumber = [NSString stringWithFormat:@"tel://%@", telNumber];
                LMLog(@"打电话调用最后组合好的号码:%@--<<", telNumber);
                
                [[UIApplication sharedApplication] openURL:[NSURL URLWithString:telNumber]];
                break;
                
            default:
                break;
        }
        
    }
    

      

  • 相关阅读:
    字符串类题
    计算器(栈、字符串)
    排序与检索,UVa 10474,(大理石在哪里)
    2019第十届蓝桥杯Java题
    暴力求解法
    图的遍历
    栈 队列与优先队列
    刷题小知识总结点
    字符串题单
    string
  • 原文地址:https://www.cnblogs.com/wuwangchuxin/p/3816101.html
Copyright © 2011-2022 走看看