开发者

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 ge开发者_运维问答t data? in case yes please show me some sample code? what about the NSUserDefault could it be useful?


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


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
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜