在Swift中,发送短信失败但MFMessageComposeViewController委托显示已发送(In Swift, Failed to send SMS but MFMessageComposeViewController Delegate Show sent)
我正在使用
MFMessageComposeViewController
从我的应用程序发送短信。
MFMessageComposeViewController
的didFinishWithResult
委托方法显示消息已成功发送,但实际上由于余额不足,此SMS无法发送。 所以MFMessageComposeViewController
没有显示正确的结果。我怎么知道消息应用程序无法发送短信? 有没有办法获得失败的身份?
I am using
MFMessageComposeViewController
to send SMS from my app.The
didFinishWithResult
delegate method ofMFMessageComposeViewController
shows that the message has been sent successfully but actually this SMS failed to send due to insufficient balance. SoMFMessageComposeViewController
does not show me the correct result.How do I know that the Messages app failed to send an SMS? Is there any way to get the failed status?
原文:https://stackoverflow.com/questions/41993970
满意答案
调用
t.run();
只需在当前线程(可能是FX Application线程)上调用
run()
方法。 要开始一个新的线程,你需要打电话t.start();
假设
threadclass
(sic)是Thread
一个子类。Calling
t.run();
simply invokes the
run()
method on the current thread (which is probably the FX Application thread). To start a new thread, you need to callt.start();
assuming
threadclass
(sic) is a subclass ofThread
.
相关问答
更多在循环中的imageview中显示图像(showing images in an imageview in a loop)
ImageView最初没有显示图像(ImageView not showing image initially)
Imageview没有显示所有图像(Imageview not showing all image)
使用线程在imageview中显示图像(showing image in imageview using thread)
ImageView没有显示图像Titanium(ImageView not showing image Titanium)
while循环只显示1个结果(While loop only showing 1 result)
循环中的模式始终只显示第一个图像(Modals in loop display always only the first image)
ImageView只显示循环中的最后一个图像(ImageView only showing last image in loop)
捕获后在ImageView中显示图像(android java)(Showing image in ImageView after capturing (android java))
JavaFX:ImageView只显示一次Image(JavaFX: ImageView shows Image only once)
相关文章
更多千锋首发Swift视频教程
Swift入门视频教程-尚学堂视频教程
Nutch Job failed异常
解决Eclipse无法打开“Failed to load the JNI shared library”
Hive 终端产生的问题 (Failed to start database 'metastore_db', see the next exception for details.)
solr bin/snapinstaller 报 failed to connect to Solr server
Failed to read auto-increment value from storage engine错误的解决方法
Hadoop中 "Exceeded MAX_FAILED_UNIQUE_FETCHES”的错误
notepad++下载Subversion插件,显示intalltion of subversion failed
android Failed to install .apk on device 'emulator-5554': timeout的解决方案
最新问答
更多获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
如何通过引用返回对象?(How is returning an object by reference possible?)
矩阵如何存储在内存中?(How are matrices stored in memory?)
每个请求的Java新会话?(Java New Session For Each Request?)
css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
xcode语法颜色编码解释?(xcode syntax color coding explained?)
在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!