Swift 4, CorePlot, send chart via mail app (with MessageUI)

帅比萌擦擦* 提交于 2019-12-11 17:47:04

问题


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:


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.



来源:https://stackoverflow.com/questions/49743016/swift-4-coreplot-send-chart-via-mail-app-with-messageui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!