程序异常退出时发送邮件报告的代码
void UncaughtExceptionHandler
NSArray *arr = [exception callStackSymbols];
NSString *reason = [exception reason];
NSString *name = [exception name];
NSString *urlStr = [NSString stringWithFormat:@"mailto://suifeng_89@163.com?subject=bug报告&body=感谢您的配合!<br><br><br>"
"错误详情:<br>%@<br>--------------------------<br>%@<br>---------------------<br>%@",
name,reason,[arr componentsJoinedByString
NSURL *url = [NSURL URLWithString:[urlStr stringByAddingPercentEsc
[[UIApplication sharedApplication] openURL:url];
}