是否可以从我们的应用程序中打开一个应用程序bundle identifier
。假设我在一台设备上安装了两个应用程序,其中com.test.app1
和com.test.app2
. 我可以从我的 app2 中打开 app1。
我知道 openUrl 方法。为此,我必须在 info.plist 中注册 url 方案。然后我可以使用以下方法:
[[UIApplication sharedApplication] openUrl:[NSURL urlWithString:@"myApp1://"]];
但是如果我没有注册 url 方案或者不知道注册的 url 怎么办。
任何的想法..?