Bir MFMailComposeViewController kurulum ettik ve iPhone'da gayet güzel çalışıyor, ancak iPad'de o söyleyerek çöküyor: MFMailComposeViewController - iPad
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present a nil modal view controller on target...
Peki neden bu nil modal görünümü yaratacak?
MFMailComposeViewController *message = [[MFMailComposeViewController alloc] init];
[message setMessageBody:@"My message here" isHTML:NO];
[message setToRecipients:[NSArray arrayWithObject:@"[email protected]"]];
[message setSubject:@"Request Info"];
message.mailComposeDelegate = self;
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
message.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentModalViewController:message animated:YES];
[message release];
Herhangi bir fikir? MFMailComposeViewController
gibi
Ama neden yaratılmış olmaz? Tahsis/init çağırıyorum. – RyanJM
Bu, örneğin – Vladimir
cihazda bir posta hesabı kurulumuna izin vermediyse - Teşekkürler Vladimir - Yorumunuz – Brodie