<tfoot id='TKOUq'></tfoot>
    • <bdo id='TKOUq'></bdo><ul id='TKOUq'></ul>

  • <legend id='TKOUq'><style id='TKOUq'><dir id='TKOUq'><q id='TKOUq'></q></dir></style></legend>

    1. <small id='TKOUq'></small><noframes id='TKOUq'>

      <i id='TKOUq'><tr id='TKOUq'><dt id='TKOUq'><q id='TKOUq'><span id='TKOUq'><b id='TKOUq'><form id='TKOUq'><ins id='TKOUq'></ins><ul id='TKOUq'></ul><sub id='TKOUq'></sub></form><legend id='TKOUq'></legend><bdo id='TKOUq'><pre id='TKOUq'><center id='TKOUq'></center></pre></bdo></b><th id='TKOUq'></th></span></q></dt></tr></i><div id='TKOUq'><tfoot id='TKOUq'></tfoot><dl id='TKOUq'><fieldset id='TKOUq'></fieldset></dl></div>
      1. iOS中的拨号真的需要确认吗?

        时间:2023-10-22
      2. <i id='4iTiw'><tr id='4iTiw'><dt id='4iTiw'><q id='4iTiw'><span id='4iTiw'><b id='4iTiw'><form id='4iTiw'><ins id='4iTiw'></ins><ul id='4iTiw'></ul><sub id='4iTiw'></sub></form><legend id='4iTiw'></legend><bdo id='4iTiw'><pre id='4iTiw'><center id='4iTiw'></center></pre></bdo></b><th id='4iTiw'></th></span></q></dt></tr></i><div id='4iTiw'><tfoot id='4iTiw'></tfoot><dl id='4iTiw'><fieldset id='4iTiw'></fieldset></dl></div>
            <tbody id='4iTiw'></tbody>
        1. <legend id='4iTiw'><style id='4iTiw'><dir id='4iTiw'><q id='4iTiw'></q></dir></style></legend>
                <bdo id='4iTiw'></bdo><ul id='4iTiw'></ul>

                <small id='4iTiw'></small><noframes id='4iTiw'>

                <tfoot id='4iTiw'></tfoot>

                  本文介绍了iOS中的拨号真的需要确认吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用以下代码拨打号码并使用我的设备进行测试.似乎不需要确认,对吗?

                  I am using the following code to dial number and testing with my device. It seems no confirmation is needed, correct?

                  NSURL *url = [NSURL URLWithString:@"tel://12345678"];
                  [[UIApplication sharedApplication] openURL:url];
                  

                  推荐答案

                  确认不是必需的,并且在以编程方式完成时不会显示.如果单击数字,您只会在 Safari 中看到 alertView.

                  Confirmation isn't required and isn't shown when done programmatically. You will only see the alertView in Safari if a number is clicked.

                  但是,根据我自己的经验,我相信客户看到对话框会更方便,这样他们就不会不小心给某人打电话.人们只是想都没想就点击应用中的东西,在这种情况下可能会很糟糕.

                  However, in my own experience, I believe it's more convenient for the customer to see a dialog box so they don't accidentally call someone. People just tap things in apps without even thinking and that could be bad in this case.

                  要模仿 safari 的功能,您可以执行以下操作:

                  To mimic what safari does you can do something like this:

                  UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:@"Call 12345678?" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Call", nil];
                  [alert show];
                  alert.tag = 1;
                  [alert release];
                  

                  -(void) alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
                      switch (alertView.tag) {
                          case 1:
                              if (buttonIndex == 1) {
                                  NSURL *url = [NSURL URLWithString:@"tel://12345678"];
                                  [[UIApplication sharedApplication] openURL:url];
                              }
                              break;
                          default:
                              break;
                      }
                  }
                  

                  这篇关于iOS中的拨号真的需要确认吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:使用 AssetsLibrary 框架 iPhone 访问库中的视频? 下一篇:如何拆分由“,"分隔的字符串中的项目

                  相关文章

                  <small id='9vkzg'></small><noframes id='9vkzg'>

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