ios - 如何通过 Link 或 URLScheme 搜索 TV App?
问题描述
希望自动将搜索传递到 iOS 上的 Apple TV 应用程序,已将其打开到搜索页面,但没有任何特定文本。
Button {
let titleReformatted = title.replacingOccurrences(of: "?", with: "%3F").replacingOccurrences(of: " ", with: "%20")
UIApplication.shared.open(URL(string: "https://tv.apple.com/us/search?q=\(titleReformatted)")!)
} label: {
Label("Where to Watch", systemImage: "appletv.fill")
}
我尝试过的其他链接包括“https://tv.apple.com/us/search/(titleReformatted), https://tv.apple.com/us/search=\(titleReformatted) , https://tv .apple.com/us/\(titleReformatted)/search"但我找不到一个有效的。
解决方案
推荐阅读
- ef-core-2.2 - 如果实体无效,我可以从 DbContext 中删除它吗?
- ffmpeg - ffmpeg 桌面流到 m3u8
- javascript - 为什么我的 react redux saga 应用程序在从中删除 immutableJs 后崩溃?
- python - 有没有办法在不运行图形的情况下在 Tensorflow 中使用 NumPy 操作?
- .net - OracleDataReader InvalidCastException:.NET 中的十进制类型上的“指定强制转换无效”
- terraform - terraform 如何知道它应该首先运行哪个资源来启动基础设施?
- android - 如何检查 Gradle 中的当前构建变体?
- android - 根据 appium-doctor,Android_Home 无效
- ios - 继续未调用的用户活动
- r - glmer 警告:参数或边界似乎具有不同的缩放比例