iPhone SDK Make a call programmatically | Coding Cluster - using asp.net, c#, mvc 4, iphone, php, ios, javascript, in asp.net mvc 3 & more
 

iPhone SDK Make a call programmatically

Tuesday

IPhone SDK dial a phone number:
                                        Use the UIApplication openURL method passing a URL that starts with 'tel:'.

use the tel:// url, just like you would want to navigate to a web page with an http:// url. you may use this as a hyperlink on a web page, or button for your Apps. You simply need to call it with a URL of the form.
NSString *phone_number = @"1-900-444-1000";      // you can assign dynamically 
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel:%@", phone_number]]];

0 comments:

Post a Comment

Share your thoughts here...

 
 
 

RECENT POSTS

Boost

 
Blogger Widgets