Mache ich etwas dummes? Ich kann vorfüllen und E-Mail in Ordnung, aber die "\ r \ n" in der emailbody ignoriert wird:Neue Zeile und Rückkehr ignoriert in setMessageBody
- (void) sendEventInEmail
{
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
picker.mailComposeDelegate = self;
NSString *emailSubject = [eventDictionary objectForKey:EVENT_NAME_KEY];
[picker setSubject:emailSubject];
// Fill out the email body text
NSString *iTunesLink = @"http://itunes.apple.com/gb/app/whats-on-reading/id347859140?mt=8"; // Link to iTune App link
NSString *content = [eventDictionary objectForKey:@"Description"];
NSString *emailBody = [NSString stringWithFormat:@"%@\r\nSent using <a href = '%@'>What's On Reading</a> for the iPhone.", content, iTunesLink];
[picker setMessageBody:emailBody isHTML:YES];
picker.navigationBar.barStyle = UIBarStyleBlack;
[self presentModalViewController:picker animated:YES];
[picker release];
}
Grüße
Dave
Ich hatte HTML auf JA eingestellt, swi Zu keinen und neuen Linien gearbeitet. Was sind "und Formatierungscodes"? – quantumpotato
@quantumpotato: Ihre ist die einzige Lösung, die funktioniert –