MessageComposer does not display message body in iOS8.0 simulator

This was, and still works great in iOS 7.1 (simulator and device). However, after updating my Xcode to version 6, I tested the email composition functionality and it no longer works. The message body is not displayed. Here are some of the code related to this feature. I know similar questions have been raised, but none fit my situation.

#import <MessageUI/MessageUI.h>

@interface ServiceViewController ()<MFMailComposeViewControllerDelegate>

-(void)showEmailView {
NSString *vehicleLog = [self getCoreVehicles];
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
picker.mailComposeDelegate = self;

[picker setSubject:@"Vehicle Log"];

[self.shareImageData enumerateObjectsUsingBlock:^(NSDictionary *obj, NSUInteger idx, BOOL *stop) {

    [picker addAttachmentData:[obj objectForKey:@"image"]  mimeType:@"image/png" fileName:[obj objectForKey:@"name"]];


[picker setMessageBody:vehicleLog isHTML:YES];

picker.navigationBar.barStyle = UIBarStyleBlack;
[self presentViewController:picker animated:YES completion:^{
    self.selectedRecords = Nil;




2014-09-30 13: 22: 35.363 Application [4919: 356300] _serviceViewControllerReady: error: Error Domain = _UIViewServiceErrorDomain Code = 1 "The operation could not be completed (error _UIViewServiceErrorDomain 1.)" UserInfo = 0x7aa37f20 {Canceled = continued service}

If I touch the area where the body should have been, the mail composer exits with an additional error.

2014-09-30 17: 50: 11.343 Appendix [6055: 429122] is timed to wait for the fencing barrier from

I downloaded the sample code from and the same problem.

If anyone has come across something similar or any advice please let me know.


source to share

All Articles