开发者

Viewing CSV attachment in MFMailComposeViewController

I have an application which generates a csv-file and then attaches it to an email using MFMailComposeViewController. This all works fine.

My pr开发者_如何学Gooblem is that I would like to add an option to view the contents of the csv before sending it. This functionality exists in Mail, where an attached csv can be displayed as a spreadsheet. My question is: can I access this functionality somehow to display the file, or do I have to resort to low level Core Graphics coding to generate the spreadsheet?


Have you tried loading the CSV file in a UIWebView? You can't interact programmatically with the MFMailComposeViewController UI, so you would have to try this before you display the mail compose interface. But since UIWebView can display all sorts of supported file formats, perhaps it understands CSV as well.


I believe you will have to create a CSV file viewer yourself. I don't know of any of the existing controllers or views that will turn a CSV file into a spreadsheet view for you.

-t

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜