Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 提示用户在iPad上启用SMS_Ios_Ipad - Fatal编程技术网

Ios 提示用户在iPad上启用SMS

Ios 提示用户在iPad上启用SMS,ios,ipad,Ios,Ipad,我正在使用MFMessageComposeViewController发送消息。在发送短信之前,我使用canSendText。但是,如果canSendText返回false,我想让用户在iPad中设置->消息,这样他就可以打开消息。是否有URL方案或其他方法可以做到这一点?这可能是iOS 5.0-5.0.1使用prefs:root=URL方案。然而,苹果公司在5.1中迅速删除了这一功能。对不起,你运气不好。我们所能做的最好的事情就是不断提交bug报告,要求恢复此功能 编辑:根据我的发现,在5.1

我正在使用
MFMessageComposeViewController
发送消息。在发送短信之前,我使用
canSendText
。但是,如果
canSendText
返回false,我想让用户在iPad中设置->消息,这样他就可以打开消息。是否有URL方案或其他方法可以做到这一点?

这可能是iOS 5.0-5.0.1使用
prefs:root=
URL方案。然而,苹果公司在5.1中迅速删除了这一功能。对不起,你运气不好。我们所能做的最好的事情就是不断提交bug报告,要求恢复此功能

编辑:根据我的发现,在5.1+版本中,Twitter设置仍然有一种方法可以做到这一点,这也可以用于消息,只要消息控制器像Twitter控制器一样符合UIAlertView委托(个人不确定这一点),但它绝对不适用于其他任何东西。也许你毕竟很幸运


我按照示例中给出的那样做了,它适用于twitter,但适用于消息MFMessageComposeViewController*msg=[[MFMessageComposeViewController alloc]init];如果([msg respondsToSelector:@selector(alertView:ClickedButtonIndex:)])。。。如果条件永远不会返回,则会出现这种情况true@ila听到这个消息我很难过,我想可能会有一点点的可能性,但如果没有,那么这是不可能做到的。