2011-02-07 5 views
0

UIWebview를 사용하여 전화를 걸면 "취소"와 "통화"로 경고합니다. "통화"를 누르면 "통화"및 "취소"처리됩니다. 호출 할 수 있어요 그리고 난 내 응용 프로그램에 다시 오는 전화를 기각 경우는 "전화"및 취급에 저를 도와주세요 UIWebview를 사용하여 전화 걸기

덕분에 많이 Btns

UIWebview *webview = [[UIWebView alloc] initWithFrame:[UIScreen Screen].applicationFrame]; 

[webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel:%@",newNumber]]]]; 
을 "취소"를!

+0

http://www.iphonedevsdk.com/forum/iphone-sdk-development/24098-uialertview-button-trigger-events.html – Mahesh

+1

나는 어떤 경고보기도 가지지 않는다. "통화"와 "취소"btn – Andy

답변

1

이것은 응용 프로그램의 기본 동작입니다.

[[UIApplication sharedApplication]openURL:[NSURL URLWithString:[number stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]]; 

또는

UIWebView *callWebview = [[UIWebView alloc] init]; 
NSURL *telURL = [NSURL URLWithString:]; 
[callWebview loadRequest:[NSURLRequest requestWithURL:telURL]]; 

차이를 참조.