小编Kru*_*tel的帖子

canOpenURL:网址失败:"instagram:// app" - 错误:"此应用不允许查询方案instagram"

这是我使用的代码:

let instagramURL = NSURL(string: "instagram://app")
if UIApplication.shared.canOpenURL(instagramURL! as URL) {
  //Code
} else {
  //Showing message "Please install the Instagram application"
}
Run Code Online (Sandbox Code Playgroud)

我输入if循环失败了.

我收到此错误:

canOpenURL:网址失败:"instagram:// app" - 错误:"此应用不允许查询方案instagram"

我也在我的设备中登录Instagram.

iphone ios swift

18
推荐指数
4
解决办法
8456
查看次数

标签 统计

ios ×1

iphone ×1

swift ×1