iOS发送短信
来源:互联网 发布:seo技术培训seo8 编辑:程序博客网 时间:2024/06/05 20:39
iPhone开发,发送短信的方法:
iPhone开发中,发送短信方法有二:
1。URL Scheme,这样不可以设置短信内容
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://10086"]];//打电话可以这样//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://10086"]];
2。MFMessageComposeViewController,这样可以设置短信的内容
MFMessageComposeViewController *controller = [[[MFMessageComposeViewController alloc] init] autorelease]; if ([MFMessageComposeViewController canSendText]) { if (![self.friendLabel.text isEqualToString:@"{好友}"]) controller.recipients = [NSArray arrayWithObjects:self.friendLabel.text, nil]; controller.body = self.shareMessageTextView.text; controller.messageComposeDelegate = self; [self presentModalViewController:controller animated:YES]; }
- [iOS]iOS发送短信
- iOS发送短信
- iOS发送短信
- IOS 发送短信实现
- ios发送短信功能
- iOS写短信发送
- IOS开发 短信发送
- IOS发送短信附件
- ios app内发送短信
- IOS程序中发送短信
- ios 发送邮件和短信
- iOS App内发送短信
- iOS开发之发送短信
- iOS 定时器(发送短信验证)
- iOS 拨打电话 发送短信
- iOS发送邮件和短信
- iOS 发送短信 和 发送邮件方法
- [iOS-GQiang]iOS app内发送短信
- string和wstring相互转换
- 时间字符串转time_t
- AndroidManifest.xml文件详解(activity-alias)
- Lua脚本学习
- TongWeb启动异常:java.lang.reflect.InvocationTargetException
- iOS发送短信
- 细说Form(表单)
- 标题后面跟随小图标
- Lua中实现类似C#的事件机制
- Linux内核--网络栈实现分析(十一)--驱动程序层(下)
- objective-c继承
- java反射知识
- Unity3D摄像机详解
- objecive-c分类