簡體   English   中英

在iOS中隱藏去電屏幕

[英]Hide Outgoing Call Screen in iOS

最近兩天來我遇到了問題。 根據我的要求,當我通過編碼呼叫另一個號碼時,我必須直接呼叫而不顯示呼叫屏幕。 當我按下通話按鈕時,通話將在后台轉移。 “呼叫”屏幕將不會顯示在屏幕上。

我在Button上調用的代碼:

 - (IBAction)callBtn_Action:(id)sender
 {
    NSString *phNo = @"02233814006";
    NSURL *phoneUrl = [NSURL URLWithString:[NSString  stringWithFormat:@"tel:%@",phNo]];

    if ([[UIApplication sharedApplication] canOpenURL:phoneUrl])
    {
       [[UIApplication sharedApplication] openURL:phoneUrl];
    }
    else
    {
        UIAlertView *calert = [[UIAlertView alloc]initWithTitle:@"Alert" message:@"Call facility is not available!!!" delegate:nil cancelButtonTitle:@"ok" otherButtonTitles:nil, nil];
        [calert show];
    }
 }

可能嗎? 請任何人幫助我..

iOS不支持直接撥打電話號碼。 您能做的最好的就是顯示一個帶有填充號碼的屏幕。 沒有解決的辦法。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM