2011-04-07 72 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