在iphone中启动没有URL架构的其他应用程序? [英] Launch other application without URL schema in iphone?
本文介绍了在iphone中启动没有URL架构的其他应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道其他应用程序可以通过URL架构从您的应用程序调用。但并非所有应用程序都是注册的架构URL。那么我该如何启动该应用程序呢?
我正在为iphone jaibroken开发。
I know that other applications can call from your application via the URL schema. But not all applications are registered schema URL. So how can I launch that application?. I'm developing for iphone jaibroken.
推荐答案
我用这种方式:
void* sbServices = dlopen("/System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices", RTLD_LAZY);
int (*SBSLaunchApplicationWithIdentifier)(CFStringRef identifier, Boolean suspended) = dlsym(sbServices, "SBSLaunchApplicationWithIdentifier");
int result = SBSLaunchApplicationWithIdentifier((CFStringRef)bundleId, false);
dlclose(sbServices);
您需要授予您应用的权利:
And you need entitlements granted to your app:
<key>com.apple.springboard.launchapplications</key>
<true/>
它可以在iOS 6上运行。
It can run on iOS 6.
这篇关于在iphone中启动没有URL架构的其他应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文