群发短信 发短信(带图片)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/WSxiaotao/article/details/47858815
/**
 *  群
发短信
 *
 * 
@param shareImage <#shareImage description#>
 */

- (
void)sendSMS:(UIImage *)shareImage
 withMoblieList:(
NSArray *)mobileList
{

   
MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init];
   
if([MFMessageComposeViewController canSendText]) {
       
NSMutableString *emailBody = [[NSMutableString alloc] initWithString:@""];
        picker.
messageComposeDelegate = self;
        picker.
recipients = [[NSArray alloc] initWithArray:mobileList];
        [picker
setBody:emailBody];// your recipient number or self for testing
        picker.
body = emailBody;
        [picker
addAttachmentData:UIImageJPEGRepresentation(shareImage, .6f typeIdentifier:@"image/jpg" filename:@"res.jpg"];
        [
self presentViewController:picker animated:YES completion:NULL];
    }
   
}

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试

关闭