开发者

launching two app in iphone sdk? [duplicate]

开发者 https://www.devze.com 2023-02-06 03:06 出处:网络
This question already has a开发者_运维知识库nswers here: Closed 12 years ago. Possible Duplicate:
This question already has a开发者_运维知识库nswers here: Closed 12 years ago.

Possible Duplicate:

Launch an app from within another (iPhone)

i want to launch another Application in iphone sdk...for example the user has downloaded two application from appstore.when he touch the button which is in one APplication, Another Application must be opened, current one must be closed..is it Possible?


If the target application has a registered custom url scheme, you can use that to open the other app.

http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html


I'm pretty sure the only way you can do this is if the second application registers itself as a handler for some DocumentType, and then the first application handles such a document. The user will be prompted to open the document with the second application. You can read more details here.

You can't just launch applications on behalf of the user, though.


You can register a custom URL Scheme in your Application B, and then open it from your Application A using this custom URL Scheme.

More info here

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号