Reputation:
I have to send data which is present in an dictionary from one application to another application, which has to used over there.
Please help.
Upvotes: 0
Views: 441
Reputation: 6102
At least you can pass it as a string parameter of custom url (like thesecondapp://data_string_goes_here
) and then parse it from within the app you pass it to
See how to encode NSData
to NSString
here.
EDIT: You should also take a look at application:openURL:sourceApplication:annotation: method implementation examples. It could be a bit more sophisticated but it seems to be more 'native' than just passing a raw string. Here is the info how to call the 'counterpart' of this method from another app.
Upvotes: 0
Reputation: 634
I am not exactly sure about how to do it but I think you might need to use the Custom URL Schemes for that. Here is a link that can help you register your URL Scheme and then using it.
Upvotes: 1