Return to app behavior after phone call different in native code than UIWebView

后端 未结 4 1214
感情败类
感情败类 2020-11-27 04:19

According to Apple\'s documentation, in order to make phone call from my app, I need to implement the following protocols:

HTML link:



        
4条回答
  •  [愿得一人]
    2020-11-27 04:46

    Allow me to simplify a bit. All you need is this little snippet:

    UIWebView *callWebview = [[UIWebView alloc] init];
    NSURL *telURL = [NSURL URLWithString:@"tel:number-to-call"];
    [callWebview loadRequest:[NSURLRequest requestWithURL:telURL]];
    

    which I got here.

    *Recently tested successfully on iOS 5.0.

提交回复
热议问题