1
我正在製作一個用於在郵件中插入兩個圖像的iPhone項目。這些圖像是從照片庫中選擇的,它們存儲在兩個獨立的圖像視圖中。當我在電子郵件中附加圖像時,它沒有正確附加。如何在郵件編輯器中附加兩個圖像
我正在製作一個用於在郵件中插入兩個圖像的iPhone項目。這些圖像是從照片庫中選擇的,它們存儲在兩個獨立的圖像視圖中。當我在電子郵件中附加圖像時,它沒有正確附加。如何在郵件編輯器中附加兩個圖像
您可以創建一個html頁面代碼,並將該圖像作爲標籤插入,並將整個html作爲字符串傳遞給Body的MFMailComposer。它看起來很酷。 你需要在此線
MFMailComposeViewController* controller = [[MFMailComposeViewController alloc] init];
controller.mailComposeDelegate = self;
if ([recipentArray count]>0)
{
[controller setToRecipients:self.recipentArray];
}
[controller setSubject:self.emailSubject];
[controller setMessageBody:self.messageBody isHTML:YES]; // isHTML -> YES/NO depending the message body
[object presentModalViewController:controller animated:YES];
RELEASE_SAFELY(controller);
一旦你將實現MFMailComposer你需要,如果你正在使用的HTML頁面中body.Let我知道如果您有任何疑問,設置布爾。
它正常工作... – 2012-08-27 11:00:39