2

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?

Csabi
  • 3,097
  • 17
  • 59
  • 107

2 Answers2

4

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

Stefan
  • 518
  • 2
  • 6
1

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

Community
  • 1
  • 1
Jiejing Zhang
  • 1,030
  • 8
  • 16