iOS应用发送SMS短消息代码
2020年02月15日
作者:佚名
下面是来客网 jb51.cc 通过网络收集整理的代码片段。
来客网小编现在分享给大家,也给大家做个参考。
//Import the MessageUI Framework into your project and //#import the header file into the “.h” file of your controller //where you want to open the In-App SMS sheet. -(IBAction) sendInAppSMS:(id) sender { MFMessageComposeViewController *controller = [[[MFMessageComposeViewController alloc] init] autorelease]; if([MFMessageComposeViewController canSendText]) { controller.body = @"Hello from Mugunth"; controller.recipients = [NSArray arrayWithObjects: @"12345678",@"87654321",nil]; controller.messageComposeDelegate = self; [self presentModalViewController:controller animated:YES]; } }
以上是来客网(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。
如果觉得来客网网站内容还不错,欢迎将来客网网站推荐给程序员好友。
以上是来客网为你收集整理的iOS应用发送SMS短消息代码全部内容,希望文章能够帮你解决iOS应用发送SMS短消息代码所遇到的程序开发问题。
如果觉得来客网网站内容还不错,欢迎将来客网网站推荐给程序员好友。