iPhone MFMailComposeViewController cuts off text

2019-06-11 05:31发布

问题:

I'm using MFMailComposeViewController inside my application and I've noticed that part of the message has been cut off. Right now it's only trimming the "Sent from my iPhone" text, but should users remove this, I don't want any of the message trimmed back.

Here's a screen cap of what I'm talking about:

To keep my app description as simple as possible, I'm launching the controller from a TabController and it covers the whole screen as a modalView.

回答1:

I had the same problem and found that it was a header tag at the beginning of the html which seemed to be throwing the entire system spacing off. NO IDEA WHY

Limit yourself to <div><p> using inline styles to get the look you want and it should correct the issue

Or even more simply, put a non breaking spacer &nbsp; before the <h1> or <h2> etc