0
我试图在我的电子邮件正文中的每个字符串之后得到回车符。我正在画空白。在格式字符串中添加回车符
这是我使用的时刻代码:
- (IBAction)mailButtonPressed {
MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init];
controller.mailComposeDelegate = self;
[controller setSubject:@"Pressed Data..."];
appDelegate= (TemplateIponeAppDelegate *)[UIApplication sharedApplication].delegate;
NSString *MessageBody=[NSString stringWithFormat:@" Hi: %@ F Result: %d , R Result: %d , B Result: %d, P Result: %d......... total Reults: %d total time :%@",clientName.text, appDelegate.FCount,appDelegate.RCount,appDelegate.BCount,appDelegate.PCount,appDelegate.TotalPressed,appDelegate.time];
[controller setMessageBody:MessageBody isHTML:NO];
[self presentModalViewController:controller animated:YES];
[controller release];
}
在电子邮件中,CR LF应该是'\ r \ n'。 – 2011-06-04 01:46:14
这里还有一个重要的关键...因为我一直在网上找这个小时。它必须是HTMLHTML:NO。是的,它会删除\ n的。 – badweasel 2012-09-27 23:35:13