十一岁的加重songxing10000…… ------ 回到博主首页

在一个应用里,点击一个按钮,跳转到另外一个应用

- (void)jumpToAnotherApp {    

 

    UIApplication *app         = [UIApplication sharedApplication];

    NSURL *AnotherAppBaseURL   = [NSURL URLWithString:@"Xxxx://"];

 

    if (![app canOpenURL:AnotherAppBaseURL]) {

        return;

    }

 

    [app openURL:[NSURL URLWithString:@"Xxxx://xxxxxxxx"]];    

}

 

关于URL Schemes在这里找

 

posted @ 2015-10-10 16:41  songxing10000  阅读(496)  评论(0编辑  收藏  举报