简体   繁体   中英

How to integrate one iphone app into another app

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 which 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 :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM