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

      

  • 相关阅读:
    第十周作业--阅读(五一)
    第九周作业
    第八周作业
    第七周作业
    第六周作业
    模板
    第五周作业
    第四周作业
    第三周作业
    文件
  • 原文地址:https://www.cnblogs.com/wuwangchuxin/p/3816101.html
Copyright © 2011-2022 走看看