Saving image to Documents directory and retrieving for email attachment

前端 未结 4 1455
遇见更好的自我
遇见更好的自我 2020-11-28 04:07

I having trouble figuring out NSBundle & DocumentDirectory data, I have a Camera Picture \"imageView\" that I\'m saving to the NSDocumentDire

4条回答
  •  粉色の甜心
    2020-11-28 04:27

    Because each iPhone app is in it's own sandbox, you don't have access to a device-wide documents folder. To attach an image to an email, save the image in your own documents folder. Try using [@"~/Documents" StringByExpandingTildeInPath] to get your local documents folder - that works for me. It looks like the technique you're using for attaching the image to an email is correct.

    Hope that helps,

提交回复
热议问题