ios开发 打开第三方app

ios打开第三方应用比较简单

第三方应用的info.plist设置

在项目里面添加代码:

 1 #import "ViewController.h"
 2 
 3 @interface ViewController ()
 4 
 5 @end
 6 
 7 @implementation ViewController
 8 
 9 - (void)viewDidLoad
10 {
11     [super viewDidLoad];
12     // Do any additional setup after loading the view, typically from a nib.
13 }
14 
15 - (void)didReceiveMemoryWarning
16 {
17     [super didReceiveMemoryWarning];
18     // Dispose of any resources that can be recreated.
19 }
20 
21 - (IBAction)ButtonOpenUrlPressed:(id)sender {
22      NSURL *url = [NSURL URLWithString:@"TestOpenUrlApp:"];
23      [[UIApplication sharedApplication] openURL:url];
24 }
25 
26 @end

 

posted on 2014-10-30 23:27  古成风云  阅读(360)  评论(0编辑  收藏  举报

导航