而是在客户端

而是在客户端。  设置isHTML为YES而是在客户端。。但实际应用中,图片一般我们没有上传到服务器上,而是在客户端,这时候我们可以用下面的方式来发送图片(将第23行代码替换成下面的代码):

而是在客户端。而是在客户端。  #import <MessageUI/MFMailComposeViewController.h>

 - (      MFMailComposeViewController *picker =     

     picker.mailComposeDelegate =     
     [picker setSubject:     
     NSArray *toRecipients = [NSArray arrayWithObject:                  



     NSString *emailBody = [NSString stringWithFormat:     
    }

( MFMailComposeViewController *picker =
picker.mailComposeDelegate = [picker setSubject: NSArray *toRecipients
= [NSArray arrayWithObject: NSString *emailBody = [NSString
stringW…

www.602.net,MFMailComposeViewControllerDelegate。

     NSData *myData = [NSData dataWithContentsOfFile:[[NSHomeDirectory() stringByAppendingPathComponent:] stringByAppendingPathComponent:     [picker addAttachmentData:myData mimeType: fileName:     NSString *emailBody = [NSString stringWithFormat:];



 - ()mailComposeController:(MFMailComposeViewController*           didFinishWithResult:(MFMailComposeResult)result error:(NSError*                             NSLog();  
                                   NSLog();  
                                   NSLog();  
                                   NSLog();  
                                   NSLog(                }

     Class mailClass = (NSClassFromString(     
      (mailClass !=                      
              UIAlertView *alert=[[UIAlertView alloc] initWithTitle:message: :self cancelButtonTitle:         

     }

  #import <MessageUI/MessageUI.h>

发表评论

电子邮件地址不会被公开。 必填项已用*标注