MailCore: Offline HTML Rendering

筅森魡賤 提交于 2020-01-06 19:33:33

问题


It doesn't seem possible to use htmlBodyRenderingOperationWithMessage: when offline (I get the error A stable connection to the server could not be established.). Why is this?

I already have the MCOIMAPMessage stored locally and thought it contained everything necessary to render the message. Is htmlBodyRenderingOperationWithMessage: pulling more data from the server?


回答1:


Methods for rendering of MCOIMAPSession have limited capabilities.

To support offline rendering of message, you should use: -[MCOIMAPMessage htmlRenderingWithFolder:delegate:]

Use MCOHTMLRendererIMAPDelegate to provide offline data required to render the message.



来源:https://stackoverflow.com/questions/29342382/mailcore-offline-html-rendering

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