简体   繁体   中英

How to open settings->messages->unknown & spam programmatically?

I know it's possible to open the settings app in Swift. For example:

UIApplication.shared.openURL(URL(string:"App-Prefs:root=General&path=About")!)

I'd like to open settings->messages->unknown & spam. "Messages" opens using "App-Prefs:root=Messages", but I can't find the correct path for unknown & spam. I tried finding the path myself, and I've also searched the web but found only partial lists of settings' paths.

It should be mentioned that I have no intention of uploading my app to the app store.

What's the way to open this entry?

I was using this successfully, App-Prefs:root=MESSAGES to open "Message Settings" and it was working on Beta 1 and Beta 3... But stopped working on BETA 3.

I couldn't find a way to open the "Unknown & Spam" yet...

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