Skip to main content

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?


Source: Tips4allCCNA FINAL EXAM

Comments

  1. 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

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?