当前位置:首页 > 操作系统 > Ios

IOS 调用系统发邮件Api

            //
             判断设备是否有发送邮件功能
    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]]; }

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


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!