Skip to main content

UIDocumentInteractionController adding custom actions to menu (eg email, save to photos)



I've started using UIDocumentInteractionController for a new app but I'm wondering how to add additional actions to the action menu that you get on the preview screen?





It seems that the menu only lists apps that have registered for a given url type plus I'm seeing PRINT showing up on iOS4.2. I would like to add send by email and save to photos but don't see a way of extending this menu. I can code the actions I want OK, it's just adding them into the menu that seems impossible?





Am I missing something obvious?


Comments

  1. You are correct,
    These are the methods

    - (BOOL) documentInteractionController: (UIDocumentInteractionController *) controller performAction: (SEL) action


    - (BOOL) documentInteractionController: (UIDocumentInteractionController *) controller canPerformAction: (SEL) action

    The supported action selectors for these methods **are copy: and print:**.

    ReplyDelete
  2. i could suggest a simple UIActionSheet or better a popover if you are on iPad with inside a table view with apps and you can manually add Print,email and everything else.

    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?