OC應用間跳轉或者判斷應用是否安裝

若是A應用跳轉B應用,在須要在B應用裏面添加一下字段:url

project->targets->info->URL TYPES 配置一下字段blog

 

 

A銀通的配置文檔:LSApplicationQueriesSchemes配置B應用的url schemes文檔

 

 NSURL *url = [NSURL URLWithString:@"aaa://"];
    if([[UIApplication sharedApplication]canOpenURL:url]){
        [[UIApplication sharedApplication]openURL:url];
    }else{
        //未安裝
    }
相關文章
相關標籤/搜索