Sometimes you wish to transfer control from your application to another application.
Dial the phone (your app ends and the phone dialer begins):
|
1 2 3 4 5 |
// Dial the phone NSString *phoneToCall = @"tel: 123-456-7890"; NSString *phoneToCallEncoded = [phoneToCall stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]; NSURL *url = [[NSURL alloc] initWithString:phoneToCallEncoded]; [[UIApplication sharedApplication] openURL:url]; |
Transfer to a web page (your app ends and the web app begins):
|
1 2 3 |
// Access web page NSURL *url = [[NSURL alloc] initWithString:@"http://servin.com"]; [[UIApplication sharedApplication] openURL:url]; |
Incoming search terms:
- android application transferring control to another application
Tagged with: Objective C
Filed under: Objective C
Like this post? Subscribe to my RSS feed and get loads more!




Leave a Reply