MailCore: Offline HTML Rendering

2019-09-07 01:21发布

问题:

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.