简体   繁体   English

与tvOS互动iPhone

[英]Interact iPhone with tvOS

I need to use an iPhone/iPad as keyboard for chat app. 我需要使用iPhone / iPad作为聊天应用程序的键盘。 Does anybody know how to interact iPhone with tvOS? 有谁知道如何与tvOS互动iPhone? I've not found some library or framework for this functionality. 我没有找到这个功能的库或框架。

Thanks for help. 感谢帮助。

It depends on what you want to achieve. 这取决于你想要达到的目标。 If you're looking for directly updates you can look into Bonjour : https://developer.apple.com/bonjour/ 如果您正在寻找直接更新,可以查看Bonjourhttps//developer.apple.com/bonjour/

You can also use Bonjour to use your phone as a Game controller ( https://forums.developer.apple.com/thread/17417 ) 您也可以使用Bonjour将手机用作游戏控制器( https://forums.developer.apple.com/thread/17417

I normally use MultipeerConnectivity for communication between devices, but this isn't available on tvOS . 我通常使用MultipeerConnectivity进行设备之间的通信,但这在tvOS上不可用。

For simple key value sharing, you can simply use the Keychain or NSUserDefaults, which is available on tvOS and shared between platforms. 对于简单的键值共享,您可以简单地使用Keychain或NSUserDefaults,它们可以在tvOS上使用并在平台之间共享。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM