Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是Apple Watch的新手,想知道是否有可能获取连接的设备名称和编号(正如 Apple 文档所说,一次只有一个 iPhone)?我们可以以编程方式进行吗?
提前致谢
在已连接并在 iPhone 上运行的扩展程序中,您可以使用以下命令获取当前设备的名称:
[[UIDevice currentDevice] name]
获取设备名称后,您可以将其传递给观看套件扩展。