ios - Apple Watch 应用是否需要配套的 iOS 应用才能拥有完整的用户界面?

标签 ios watchkit

我在 Apple 的网站上找不到清楚解释的信息。

Apple Watch requires the presence of an iPhone to run third-party apps. Creation of a third-party app requires two separate bundles: a WatchKit app that runs on Apple Watch and a WatchKit extension that runs on the user’s iPhone.

还有

Because a WatchKit app extends the behavior of your existing iOS app, the WatchKit app and WatchKit extension are bundled together and packaged inside your iOS app bundle. During installation of your iOS app, the system prompts the user to install the WatchKit app when a paired Apple Watch is present.

我认为这意味着为了创建一个 Apple Watch 应用程序,我需要先创建一个完整的 iOS 应用程序,包括所有 UI、资源和交互。这是一个正确的假设吗?

最佳答案

是的,这个假设是正确的,为了为 Apple Watch 构建应用程序,您需要构建一个配套的 iOS 应用程序。对此的解释实际上在您引用的文档部分中:

Because a WatchKit app extends the behavior of your existing iOS app, the WatchKit app and WatchKit extension are bundled together and packaged inside your iOS app bundle.

但是,您对完整 iOS 应用的描述,即具有“所有 UI、资源和交互”的应用可能有点误导。当然 iOS 应用程序确实有这样的东西,但它使用它们的程度是开发人员关心的(受 Apple 的人机界面指南限制)。所以,术语“完整的 iOS 应用程序”听起来有点奇怪,实际上没有任何意义:)

关于ios - Apple Watch 应用是否需要配套的 iOS 应用才能拥有完整的用户界面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28647247/

相关文章:

android - iOS Android - 如何为应用程序创建下载链接?

iphone - 如何以非阻塞延迟执行多个操作?

ios - 仅从表行弹出 Watchkit 上下文菜单?

ios - 如何从 iOS 中的 Healthkit 实时获取心率数据?

ios - iPad迷你: Swift-App receive memory warning on low usage

ios - 更改项目中标签的字体

ios - 使用未解析的标识符 'AVAsset'

ios - 在 WatchKit 错误中填充 TableView

ios - 在 Swift 中从 App 向 watchOS 发送消息

ios - 为什么点击 TableView Swift IOS 值得单元格行是点击前几行?