Csabi
Csabi

Reputation: 3043

how can i assign application to open mail attachment

Hi i want to do Ios app which should open an exact format of attachment which will be received by mail. so i receive an email with attachment, i open it and click long to the attachment and i want to see option to open with my app.

how can be it done?

Upvotes: 2

Views: 2016

Answers (2)

Jiejing Zhang
Jiejing Zhang

Reputation: 1050

I think what you are looking for is in this link, register you application to open the attachment in mail/Safari.

Supporting Open In... menu item in my app for iOS Mail And Safari

Upvotes: 1

Stefan
Stefan

Reputation: 518

Use the document interaction controller

http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIDocumentInteractionController_class/Reference/Reference.html#//apple_ref/doc/uid/TP40009304

"For example, an email program might use this class to allow the user to preview attachments and open them in other apps. ..."

Upvotes: 4

Related Questions