Mail Composer сломан в iOS 8.1

Привет, ребята,

я бегу за своей собственной историей в течение 4 часов, и я только что понял, что, возможно, я не сумасшедший или глупый, и что композитор почты не работает в iOS8.1

Так что это мой код, ничего особенного:

MFMailComposeViewController *mail = [[MFMailComposeViewController alloc] init];
mail.mailComposeDelegate = self;

if ([MFMailComposeViewController canSendMail]) {
    //Setting up the Subject, recipients, and message body.
    [mail setToRecipients:[NSArray arrayWithObjects:@"email@email.com",nil]];
    [mail setSubject:@"Subject of Email"];
    [mail setMessageBody:@"Message of email" isHTML:NO];
    //Present the mail view controller
    [self presentViewController:mail animated:YES completion:NULL]; }

В iOS 8.1 я получаю окно почты с темой, и приложение вылетает.

В iOS 7.1 я получаю окно почты с темой и телом сообщения, и все хорошо.

Есть что-то, чего мне не хватает в iOS8.1 или это ошибка?

Спасибо

PS: происходит сбой, потому что он не может заполнить электронную почту ни получателя, ни тела сообщения. Вот часть отчета о сбое:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSRegularExpression enumerateMatchesInString:options:range:usingBlock:]: nil argument' terminating with uncaught exception of type NSException abort() called CoreSimulator 110.4 - Device: iPhone 5 - Runtime: iOS 8.1 (12B411) - DeviceType: iPhone 5  

Или же:

<MFMailComposeRemoteViewController: 0x7c0c1e00> timed out waiting for fence barrier from com.apple.MailCompositionService

Я импортировал рамки, заголовки и сделал делегат.

0 ответов

Другие вопросы по тегам