Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 如何更改MFMailComposeViewController中显示数据的顺序_Iphone_Ipad_Mfmailcomposeviewcontroller - Fatal编程技术网

Iphone 如何更改MFMailComposeViewController中显示数据的顺序

Iphone 如何更改MFMailComposeViewController中显示数据的顺序,iphone,ipad,mfmailcomposeviewcontroller,Iphone,Ipad,Mfmailcomposeviewcontroller,我的应用程序中有电子邮件功能。随着邮件正文,我在邮件中附加了一个图像数据。当我们做[自我呈现ModalViewController:emailController动画:是],它提供了一个视图,其中首先是消息体,然后是附加的数据/图像 如何更改邮件显示的顺序。我需要的图像应该首先显示,然后邮件正文应该遵循。如果有人知道,请立即回复 提前谢谢。:) 这是不可能的,因为MFMailComposeViewController是内置的,由Apple提供,我们只能按原样使用,不能修改 尽管您可以创建自己的自

我的应用程序中有电子邮件功能。随着邮件正文,我在邮件中附加了一个图像数据。当我们做[自我呈现ModalViewController:emailController动画:是],它提供了一个视图,其中首先是消息体,然后是附加的数据/图像

如何更改邮件显示的顺序。我需要的图像应该首先显示,然后邮件正文应该遵循。如果有人知道,请立即回复


提前谢谢。:)

这是不可能的,因为
MFMailComposeViewController
是内置的,由Apple提供,我们只能按原样使用,不能修改

尽管您可以创建自己的自定义Mail Composer控制器…

明确指出,图像附着在正文之后和签名之上

 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.
这是可能的: