没有MFMessageComposeViewController

没有MFMessageComposeViewController

本文介绍了在没有MFMessageComposeViewController的情况下发送消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢制作自己的iMessages消息应用程序.该应用程序基本上已经准备就绪,但是我不知道如何在不显示MFMessageComposeViewController的情况下发送iMessages.我知道有办法.他们在ByteSMS和所有其他Message.app替代产品中使用它.

I like make my own iMessages message app. The app is basically ready but I dont know how to send iMessages without showing the MFMessageComposeViewController. I know that there is a way. They are using it in ByteSMS and all the other Message.app alternatives.

那么有办法吗?

感谢您的回答!

不应将其提交到Appstore.该应用程序应提交到Cydia或其他第三方商店.

It shouldn't be submited to the Appstore. The app should be submited to Cydia or other 3rd party Stores.

推荐答案

您不能这样做我厌倦了使用CTmessageCenter在后台发送消息,该消息对我有用,但是由于使用了私有框架(CTmessagecenter),苹果拒绝了我的应用程序

you can't do thisI tired to send message in background using CTmessageCenter it works for me but apple rejected my app due to using Private Framework (CTmessagecenter)

因此,如果您要执行此操作并希望在appstore上上传应用程序,那么唯一的方法就是使用第三方网络服务

So if you want to do this and wants to upload app on appstore the only way is to do use 3rd party webservice

如果您不想上传应用商店,则可以使用CTmessagecenter,它一定会为您服务

if you dont want to upload appstore then you can use CTmessagecenter that will surely works for you

#import <CoreTelephony/CTMessageCenter.h>

[[CTMessageCenter sharedMessageCenter] sendSMSWithText:@"Your Message here" serviceCenter:nil toAddress:@"Receiver's Phone Number here"];

这是另一篇文章,可能是您正在寻找的内容使用核心电话发送短信吗?

here is another post may be this is what you are looking forSend sms using core telophony?

这篇关于在没有MFMessageComposeViewController的情况下发送消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 17:08