Swift 4, CorePlot, send chart via mail app (with M

2019-08-22 08:41发布

Can I somehow take the chart (which was made with CorePlot) from view and send it as a file to another person via mail app? I want to send mail with the help of MessageUI. I feel fine if just the picture will be sent.

1条回答
对你真心纯属浪费
2楼-- · 2019-08-22 09:43

Use the -imageOfLayer method to get a PNG of the graph or the -dataForPDFRepresentationOfLayer method to get a PDF and attach the resulting file to a message.

查看更多
登录 后发表回答