群发短信 发短信(带图片)
来源:互联网 发布:建立淘宝店铺 编辑:程序博客网 时间:2024/04/28 03:50
/**
* 群发短信
*
* @paramshareImage <#shareImage description#>
*/
- (void)sendSMS:(UIImage*)shareImage
withMoblieList:(NSArray*)mobileList
{
MFMessageComposeViewController*picker = [[MFMessageComposeViewControlleralloc]init];
if([MFMessageComposeViewControllercanSendText]) {
NSMutableString*emailBody = [[NSMutableStringalloc]initWithString:@""];
picker.messageComposeDelegate= self;
picker.recipients= [[NSArrayalloc]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"];
[selfpresentViewController:pickeranimated:YEScompletion:NULL];
}
* 群发短信
*
* @paramshareImage <#shareImage description#>
*/
- (void)sendSMS:(UIImage*)shareImage
withMoblieList:(NSArray*)mobileList
{
MFMessageComposeViewController*picker = [[MFMessageComposeViewControlleralloc]init];
if([MFMessageComposeViewControllercanSendText]) {
NSMutableString*emailBody = [[NSMutableStringalloc]initWithString:@""];
picker.messageComposeDelegate= self;
picker.recipients= [[NSArrayalloc]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"];
[selfpresentViewController:pickeranimated:YEScompletion:NULL];
}
}
0 0
- 群发短信 发短信(带图片)
- 通过短信猫群发短信
- 短信群发短信和短代码运动
- 群发短信“达人”—凌凯短信平台
- 群发短信
- 群发短信
- 发短信(带发送状态和到达状态)
- 调用系统自带的发短信Activity
- 发短信
- 发短信
- 发短信
- 发短信
- 发短信
- 发短信
- 发短信
- 发短信
- 发短信
- 发短信
- Qt:二维码的解析/扫描(QZxing)与生成(qrencode)
- Python 日期处理——datetime包学习(上)
- UIImage的两个方法的内存分析
- 使用微信JSSDK实现图片上传
- 关于找回Iphone设备的相关问题
- 群发短信 发短信(带图片)
- java 如何有效的避免OOM
- Raising Modulo Numbers 1995 (快速幂+大数)
- 异常的学习(8.21)
- 使用包内资源
- Seaside
- 图解C++
- java中的装箱和拆箱
- HTTPS SSL