首页 > 移动平台 > 详细

IOS 调用系统发邮件Api

时间:2014-03-14 18:55:20      阅读:612      评论:0      收藏:0      [点我收藏+]
bubuko.com,布布扣
// 判断设备是否有发送邮件功能
    NSString *deviceType = [UIDevice currentDevice].model;
    if([deviceType  isEqualToString:@"iPod touch"]||
        [deviceType isEqualToString:@"iPad"]||
        [deviceType isEqualToString:@"iPhone Simulator"]) { UIAlertView *alert=[[UIAlertView alloc] initWithTitle:@"提示" message:@"模拟器没有发送邮件功能" delegate:nil cancelButtonTitle:@"好的,知      道了" otherButtonTitles:nil,nil]; [alert show]; return; } else { NSString *telUrl = [NSString stringWithFormat:@"mailto:%@",personInfo.email]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:telUrl]]; }
bubuko.com,布布扣

IOS 调用系统发邮件Api,布布扣,bubuko.com

IOS 调用系统发邮件Api

原文:http://www.cnblogs.com/joesen/p/3598622.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!