在iOS 9中,canOpenURL可以替代(不推荐使用)canOpenURL吗? [英] Is there an alternative to (the deprecated) canOpenURL in iOS 9?

查看:85
本文介绍了在iOS 9中,canOpenURL可以替代(不推荐使用)canOpenURL吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用苹果的canOpenURL:和openURL:方法来检测&打开其他应用程序.但是,由于这些方法在iOS9中已弃用,因此它们返回NO.

I am using apple's canOpenURL: and openURL: methods to detect & open other application. But as these methods are deprecated in iOS9, They returns NO.

是否有其他替代方法可以解决此问题?

Is there any alternate to manage this?

谢谢

推荐答案

您需要向您的plist提供白名单"

You need to provide "whitelist" to your plist

<key>LSApplicationQueriesSchemes</key>
<array>
 <string>urlscheme</string>
 <string>urlscheme2</string>
 <string>urlscheme3</string>
 <string>urlscheme4</string>
</array> 

查看更多详细信息

iOS 9对处理URL方案.

更多详细信息

这篇关于在iOS 9中,canOpenURL可以替代(不推荐使用)canOpenURL吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆