Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Counterpart to -application:openURL:sourceApplication:annotation:

iOS SDK 4.2 includes a new UIApplicationDelegate method called application:openURL:sourceApplication:annotation:. It is a replacement for application:handleOpenURL: and offers more information about the calling application: not only do we get the bundle identifier of the calling app, but also, in the annotation argument,

A property-list object supplied by the source application to communicate information to the receiving application.

Great, this should offer a lot of opportunities for a more direct interaction between multiple third-party apps!

The only problem is: how do I invoke this mechanism on the side of the calling app? -[UIApplication openURL:] seems unchanged and does not offer any way to pass a property list along with the URL. Do you know how a calling app could do that with iOS SDK 4.2?

like image 641
Ole Begemann Avatar asked Nov 23 '10 18:11

Ole Begemann


People also ask

Is it counterpart to or counterpart of?

a person or thing closely resembling another, especially in function: Our president is the counterpart of your prime minister. a copy; duplicate. Law.

What does counterpart mean?

: a person or thing that is very like or equivalent to another person or thing. counterpart.

What is an example of a counterpart?

The definition of a counterpart is someone or something that is the equivalent to, or has the same features, functions and/or characteristics as someone or something else. An example of counterpart is when you fill the same role at your office as someone in a different branch office.


1 Answers

You need to use the new Document Interaction classes, specifically you can send this data via the annotation property of UIDocumentInteractionController. See also:

  • UIDocumentInteractionController Reference
  • Document Interaction Topics
like image 165
bosmacs Avatar answered Oct 02 '22 19:10

bosmacs