gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 02:16:58 24 4
gpt4 key购买 nike

我在 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com