在图像之后显示邮件正文

时间:2012-02-28 11:17:33

标签: iphone objective-c ios image email

我有这段代码:

if([MFMailComposeViewController canSendMail]){
    [mail setToRecipients:indirizzoMail];
    [mail setSubject:oggettoMail];
    if (img != nil ) {
        NSData *myData = UIImageJPEGRepresentation(img ,0.2);
        [mail addAttachmentData:myData mimeType:@"image/png" fileName:@"image/jpeg"];
    }
    [mail setMessageBody:messaggioMail isHTML:NO];
    [self presentModalViewController:mail animated:YES];
 }

一切正常,但我想在邮件顶部显示图像。 我怎样才能做到这一点? 谢谢所有

0 个答案:

没有答案