简体   繁体   中英

How to stop SMS Preview in programmatically

我们是否可以关闭节目预览。在设置 - >消息 - >显示预览 - >开/关,这是我们必须以编程方式执行的操作。

This falls outside of your application sandbox. From the docs:

The Application Sandbox

For security reasons, iOS restricts each application (including its preferences and data) to a unique location in the file system. This restriction is part of the security feature known as the application's sandbox. The sandbox is a set of fine-grained controls limiting an application's access to files, preferences, network resources, hardware, and so on. Each application has access to the contents of its own sandbox but cannot access other applications' sandboxes.

You may find a way to do it, but it's an absolute no-go unless you're developing for jailbroken devices. If you do find a way to accomplish this and plan to submit to the App Store, Rest assured, Apple will find this functionality in the review process and would reject it based solely on this functionality.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM