Calling a phone using UIWebview -


i calling phone using uiwebview giving me alert "cancel" , "call" want handle "call" , "cancel" btns, if press "call" able call , if dismiss call coming application, please me in handling "call" , "cancel" btns

uiwebview  *webview = [[uiwebview alloc] initwithframe:[uiscreen screen].applicationframe];  [webview loadrequest:[nsurlrequest requestwithurl:[nsurl urlwithstring:[nsstring stringwithformat:@"tel:%@",newnumber]]]]; 

thanks lot!

that default behavior of application.

[[uiapplication sharedapplication]openurl:[nsurl urlwithstring:[number stringbyaddingpercentescapesusingencoding:nsutf8stringencoding]]]; 

or

uiwebview *callwebview = [[uiwebview alloc] init]; nsurl *telurl = [nsurl urlwithstring:]; [callwebview loadrequest:[nsurlrequest requestwithurl:telurl]];  

see difference.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -