gpt4 book ai didi

ios - 将 nsstring 转换成 pdf 格式然后发送邮件

转载 作者:行者123 更新时间:2023-11-29 10:51:36 25 4
gpt4 key购买 nike

<分区>

-(void)sendmail
{
MFMailComposeViewController *mailer = [[MFMailComposeViewController alloc] init];


[mailer setSubject:@"iOS School - MultipleAlertViews"];

NSArray *toRecipients = [NSArray arrayWithObjects:@"", nil];
[mailer setToRecipients:toRecipients];

NSString * [emailBody appendString:[NSString stringWithFormat:@"<hr> <font face=\"verdana\" size=\"2\" color=\"black\"> <table width=\"700px\" border=\"1px;\"><tr><td width=\"200px\"><img src='%@' width=\"200\" height=\"200\"></td><td width=\"500px\"> <b>&nbsp%@/%@/%@ &nbsp &nbsp &nbsp &nbsp Price: %@%@ </b></br><hr>&nbsp %@ </br><hr></br><hr>&nbsp Gross Wt: %0.2f gms &nbsp &nbsp &nbsp &nbsp Net Wt.: %@ gms </br><hr>&nbsp Dia: %d/%0.2f cts &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp Col.Stone: %d/%0.2f cts</td></tr></table></font>",



[mailer setMessageBody:emailBody isHTML:YES];

[self presentModalViewController:mailer animated:YES];
}

这里的 emailBody 是转换成 pdf 然后发送邮件,这里我不想编辑任何东西,也不想禁用键盘。

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com