ios - iPhone(iOS) 和 Apple TV (tvOS) 模拟器之间的通信

标签 ios objective-c ios9 tvos apple-tv

我们如何在 tvOS(模拟器)和 iPhone 之间进行通信?

这意味着如果我需要从 iPhone 中的应用程序向 tvOS 传递一些数据,我们该怎么做。

我们可以使用 Bonjour 吗?

最佳答案

大多数(如果不是全部)本地网络访问框架已从 tvOS SDK 中删除。

您可以使用 Game Center(简单)或 CloudKit(更复杂)或网络上的外部服务器(哎哟!)。

关于ios - iPhone(iOS) 和 Apple TV (tvOS) 模拟器之间的通信,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33235194/

相关文章:

ios - UIWebView scrollView 在状态栏隐藏时更改了它的内容偏移量

ios - 如何自定义 UICollectionView Cell 以显示如附件所示的图像网格?

ios - 如何将 NSAppTransportSecurity 添加到我的 info.plist 文件中?

ios - 迪尔德 : Symbol not found: ___NSDictionary0__ when using google ServiceGenerator binary with discovery docs in XCode 7 & iOS target 9. 0

iOS 9 iPad 分屏完成/完成通知

新 View Controller 上的 iOS UILabel 在使用 segue 时未更新

ios - GCDAsyncSocket 丢失数据

ios - 如何从 soap 加载数组并显示在 TableView 上?

ios - iPhone : Multiple touches on a UIButton are not recognized

ios - 如何检查用户是否从 iOS 上的另一个应用程序调用我的应用程序?