我正在尝试使用 MFMailComposeViewController 从我的应用程序发送 HTML 电子邮件,但我遇到了右侧有奇怪填充的问题。
这是我正在使用的 HTML:
</br>
</br>
<a href='itms-apps://itunes.apple.com/app/id444395321'>
<img src='http://brianensorapps.com/whirlworld/wwad.png' height='80' width='320' style='position:relative;left:-10px;margin-right:0px;padding-right:0px;'/>
</a>
我不确定哪些正确的 CSS 标签是必要的。现在都没有工作。position 和 left 标签用于消除左边距。
这是我试图避免的情况的图片,用户可以向右滚动到我的横幅:
还要求我发布用于呈现 MFMailComposeViewController 的代码:
sharingVC = [[MFMailComposeViewController alloc] init];
sharingVC.mailComposeDelegate = self;
sharingVC.navigationBar.tintColor = [UIColor lightGrayColor];
[sharingVC setSubject:@"Check out this app"];
[sharingVC setMessageBody:[NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"sharingEmail.html"] usedEncoding:nil error:nil] isHTML:YES];
[self presentViewController:sharingVC animated:YES completion:nil];