Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有 API 可以检查已注册的 iOS 协议处理程序是否存在?我想弄清楚给我的一些协议处理程序是否有效。
如果您在谈论应用程序 URL 方案,您可以使用:
[[UIApplication sharedApplication] canOpenURL:<#(NSURL *)#>]
YES如果有可以打开 URL 方案的应用程序或者没有,它将返回NO。
YES
NO