<i id='V7G2z'><tr id='V7G2z'><dt id='V7G2z'><q id='V7G2z'><span id='V7G2z'><b id='V7G2z'><form id='V7G2z'><ins id='V7G2z'></ins><ul id='V7G2z'></ul><sub id='V7G2z'></sub></form><legend id='V7G2z'></legend><bdo id='V7G2z'><pre id='V7G2z'><center id='V7G2z'></center></pre></bdo></b><th id='V7G2z'></th></span></q></dt></tr></i><div id='V7G2z'><tfoot id='V7G2z'></tfoot><dl id='V7G2z'><fieldset id='V7G2z'></fieldset></dl></div>
      1. <tfoot id='V7G2z'></tfoot>
          <bdo id='V7G2z'></bdo><ul id='V7G2z'></ul>
      2. <small id='V7G2z'></small><noframes id='V7G2z'>

      3. <legend id='V7G2z'><style id='V7G2z'><dir id='V7G2z'><q id='V7G2z'></q></dir></style></legend>

        从 iPhone 应用程序以编程方式拨打电话并在结束通话后返回应用程序

        时间:2023-10-03

          <legend id='To30i'><style id='To30i'><dir id='To30i'><q id='To30i'></q></dir></style></legend>

            <small id='To30i'></small><noframes id='To30i'>

            <i id='To30i'><tr id='To30i'><dt id='To30i'><q id='To30i'><span id='To30i'><b id='To30i'><form id='To30i'><ins id='To30i'></ins><ul id='To30i'></ul><sub id='To30i'></sub></form><legend id='To30i'></legend><bdo id='To30i'><pre id='To30i'><center id='To30i'></center></pre></bdo></b><th id='To30i'></th></span></q></dt></tr></i><div id='To30i'><tfoot id='To30i'></tfoot><dl id='To30i'><fieldset id='To30i'></fieldset></dl></div>

              <tbody id='To30i'></tbody>
              <bdo id='To30i'></bdo><ul id='To30i'></ul>
              <tfoot id='To30i'></tfoot>
                • 本文介绍了从 iPhone 应用程序以编程方式拨打电话并在结束通话后返回应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试从我的 iphone 应用程序发起呼叫,我是通过以下方式进行的..

                  I am trying to initiate a call from my iphone app,and I did it the following way..

                  -(IBAction) call:(id)sender
                  {
                  
                      UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Call Besito" message:@"
                  
                  
                  "
                                                                     delegate:self cancelButtonTitle:@"Cancel"  otherButtonTitles:@"Submit", nil];
                  
                  
                      [alert show];
                      [alert release];
                  }
                  
                  - (void)alertView:(UIAlertView *)alertView willDismissWithButtonIndex:(NSInteger)buttonIndex
                  {
                      if (buttonIndex != [alertView cancelButtonIndex])
                      {
                        NSString *phone_number = @"0911234567"; // assing dynamically from your code
                          [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString    stringWithFormat:@"tel:%@", phone_number]]]; 
                           NSString *phone_number = @"09008934848";
                          NSString *phoneStr = [[NSString alloc] initWithFormat:@"tel:%@",phone_number];
                          NSURL *phoneURL = [[NSURL alloc] initWithString:phoneStr];
                          [[UIApplication sharedApplication] openURL:phoneURL];
                          [phoneURL release];
                          [phoneStr release];
                      }
                  }
                  

                  通过上面的代码..我可以成功拨打电话..但是当我结束通话时,我无法返回我的应用程序

                  所以,我想知道如何实现,那..也请告诉我我们如何使用 webview 发起呼叫...

                  So, I want to know how to achieve,that..also please tell me how we can initiate a call using webview...

                  推荐答案

                  这是我的代码:

                  NSURL *url = [NSURL URLWithString:@"telprompt://123-4567-890"]; 
                  [[UIApplication  sharedApplication] openURL:url]; 
                  

                  使用它,以便在通话结束后返回应用程序.

                  Use this so that after call end it will return to app.

                  这篇关于从 iPhone 应用程序以编程方式拨打电话并在结束通话后返回应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:使用 NSURL 请求时出现错误的 URL 下一篇:如何在不打开短信界面的情况下从 iPhone 应用发送短信?

                  相关文章

                • <tfoot id='7EcKA'></tfoot>

                    <legend id='7EcKA'><style id='7EcKA'><dir id='7EcKA'><q id='7EcKA'></q></dir></style></legend>

                    <i id='7EcKA'><tr id='7EcKA'><dt id='7EcKA'><q id='7EcKA'><span id='7EcKA'><b id='7EcKA'><form id='7EcKA'><ins id='7EcKA'></ins><ul id='7EcKA'></ul><sub id='7EcKA'></sub></form><legend id='7EcKA'></legend><bdo id='7EcKA'><pre id='7EcKA'><center id='7EcKA'></center></pre></bdo></b><th id='7EcKA'></th></span></q></dt></tr></i><div id='7EcKA'><tfoot id='7EcKA'></tfoot><dl id='7EcKA'><fieldset id='7EcKA'></fieldset></dl></div>

                      <bdo id='7EcKA'></bdo><ul id='7EcKA'></ul>

                      <small id='7EcKA'></small><noframes id='7EcKA'>