gpt4 book ai didi

ios - 如何在 iOS 上以编程方式发送短信?

转载 作者:行者123 更新时间:2023-12-01 18:02:19 25 4
gpt4 key购买 nike

这个问题在这里已经有了答案:





How to programmatically send SMS on the iPhone?

(18 个回答)


3年前关闭。




有没有办法让“发送”按钮自动按下(以编程方式)?

最佳答案

绝对不。一旦您展示了电子邮件或 SMS 组合 View Controller ,您就不再对这些界面进行编程控制。苹果会认为这样的事情侵犯了安全或隐私。不幸的是,你运气不好。

来自 MFMessageComposeViewController 的文档:

Important: The message composition interface itself is not customizable and must not be modified by your application. In addition, after presenting the interface, your application is unable to make further changes to the SMS content. The user can edit the content using the interface, but programmatic changes are ignored. Thus, you must set the values of content fields, if desired, before presenting the interface

关于ios - 如何在 iOS 上以编程方式发送短信?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7412492/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com