开发者

How to integrate one iphone app into another app

开发者 https://www.devze.com 2023-04-12 05:01 出处:网络
we have developed a iPad app which is live on the appstore now. My clients are very interested in the app and want to use its features in their iPad app. They would want us to play our app through the

we have developed a iPad app which is live on the appstore now. My clients are very interested in the app and want to use its features in their iPad app. They would want us to play our app through their app and servers. To be precise, they want us to integrate our app into their app. But, we are not willing to share our source codes with each other. Is there any way in whic开发者_JS百科h this process can be done with out the actually sharing the source code?


I don't think you can integrate one app into another one. But Apple provide a way to switch between app by using URL.

You can use this to launch an app:

  • (BOOL)openURL:(NSURL *)url from UIApplication

The other app need to register an url in his info.plist and implements :

  • (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
    With this, you can implement a easy way to switch between 2 apps.


Yes: you need use URL Schemes:

Essentially, one app registers the fact that it handles a particular URL prefix, and then to launch that app, you have to navigate to that URL.

You can pass parameters through this URL too.

If you meant e-mail application, you can pass link according to mailto: scheme. The simplest example is @"mailto:someone@example.com".

thanks :)

0

精彩评论

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

关注公众号