在程序里打開另一個APP
1、首先,要在被打開的 APP 的 info.plist 文件里添加 URL types 并設(shè)置 URL Schemes,如下圖所示:

1.png
2、在項目的 info.plist 文件里添加 LSApplicationQueriesSchemes 屬性,并添加子 item 為被打開的 APP 的 URL Schemes,如下圖所示:

2.png
3、在項目里使用如下代碼打開另一個 APP
UIApplication *application = [UIApplication sharedApplication];
if ([application canOpenURL:[NSURL URLWithString:@"ABC://"]]) {
[application openURL:[NSURL URLWithString:@"ABC://"]];
}