我的應用允許用戶通過單擊按鈕撥打另一個號碼。但用戶不想分享他們的號碼。這是當用戶試圖撥打另一個時,應用程序將隱藏他們的手機號碼,並只顯示他們的名字保存在數據庫或任何隨機數字。在iOS中可以嗎?iOS-撥打不分享號碼的電話號碼
我知道如何在iOS中進行移動呼叫。
NSString *phNo = @"+912436580";
NSURL *phoneUrl = [NSURL URLWithString:
[NSString stringWithFormat:@"telprompt:%@",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];
}
是否可以隱藏主叫號碼?請幫幫我。
你的意思是打電話的手機應用程序? – Antzi 2014-11-21 05:50:02
是的。在我的應用程序中點擊一個按鈕即可通話。 – AKS 2014-11-21 05:51:55