2011-04-07 27 views
1

我在我的应用程序中有电子邮件功能。与邮件正文一起,我在邮件中附加图片数据。虽然我们[自我presentModalViewController:emailController动画:是]; ,它提出了一个观点,首先消息体将会在那里,然后是附件数据/图像。如何更改在MFMailComposeViewController中显示数据的顺序

如何更改邮件显示的顺序。我需要首先显示图片,然后是消息正文。如果有人知道,请立即回复。

预先感谢您。 :)

+1

上方安装这是可能的:http://stackoverflow.com/a/10069288/308315 – iwasrobbed 2013-05-30 02:11:42

回答

1

The MFMailComposeViewController reference明确指出图像后身体和签名

addAttachmentData:mimeType:fileName: 

Adds the specified data as an attachment to the message. 
- (void)addAttachmentData:(NSData*)attachment mimeType:(NSString*)mimeType fileName:(NSString*)filename 
Parameters 

attachment 

    The data to attach. Typically, this is the contents of a file that you want to include. This parameter must not be nil. 
mimeType 

    The MIME type of the specified data. (For example, the MIME type for a JPEG image is image/jpeg.) For a list of valid MIME types, see http://www.iana.org/assignments/media-types/. This parameter must not be nil. 
filename 

    The preferred filename to associate with the data. This is the default name applied to the file when it is transferred to its destination. Any path separator (/) characters in the filename are converted to underscore (_) characters prior to transmission. This parameter must not be nil. 

Discussion 

This method attaches the specified data after the message body but before the user’s signature. You may attach multiple files (using different file names) but must do so prior to displaying the mail composition interface. Do not call this method after presenting the interface to the user. 
1

这是不可能怎么一回事,因为MFMailComposeViewController是由苹果公司提供内置的,并且因为它是,不修改

虽然你可以创建自己的自定义邮件撰写控制器,我们只能用它...

+0

谢谢... :) – 2011-04-07 11:38:45