Malek_Jundi
Malek_Jundi

Reputation: 6160

share data between two separated applications in iPhone

I'm developing two separated applications but there is a plist file for one of those app contains data that I need it on the other one.

is there is any way to get data? in case yes please show me some sample code? what about the NSUserDefault could it be useful?

Upvotes: 0

Views: 827

Answers (2)

Rahul Vyas
Rahul Vyas

Reputation: 28740

NSUserDefault will not work. You need to create a custom URL scheme for your app and then you will be able to pass some data to your another app.

follow these url's you will find what you want.

http://www.tutoplanet.com/android-tutorials/ios-sdk-working-with-url-schemes/

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

Upvotes: 1

FreeAsInBeer
FreeAsInBeer

Reputation: 12979

NSUserDefaults will not help you at all. Your applications are each sandboxed separately and have access to very little other than their own data.

You can, however, open a file from one app in another. You can see more about that here.

Other Resources

  1. Apple Approved iPhone Inter-process Communication
  2. 2-way app integration on the iPhone: How it works

Upvotes: 0

Related Questions