Hy!
I had generate a PDF File on my iPhone App.
Now I want to send it via EMail – i use the MailViewController and have to add my attachment, but now the question…
Whick URL should I write when I only written the filename.pdf at the PDFContext?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To send a pdf file that is included as a resource in your app:
To send a pdf file that you’ve GENERATED in your app:
For a detailed discussion of temp directories, read this:
http://cocoawithlove.com/2009/07/temporary-files-and-folders-in-cocoa.html
But in short:
the path you use to create a PDFContext should be in either the documents directory, or the temp directory, depending on how long you want the file to persist. “filename.pdf” is not a valid path to be creating a pdf context with.