xcode - 无法将 GROUP 或 BUTTON 拖放到 Watchkit 应用程序的 Storyboard "Hosting Controller"上?

标签 xcode xcode11 watchos

TL;DR - 当我将一个组拖到 Storyboard 中的 watch 上时,它消失了,没有任何显示,没有任何迹象。嗯?

Xcode11 和 WatchOS6 新手。我创建了一个新的 Watch 应用程序,进入 WatchKit 应用程序,单击 Interface.storyboard,然后尝试将一个组添加到 watch 上(上面写着“Hosting Controller”)。 (我正在关注一个 youtube swift 教程)。我可以单击 +,找到组,但是当我拖放并释放到 watch 上时,它就消失了——似乎没有其他事情发生。

我不确定它为什么不添加它,也不确定从这里去哪里。

GIF of what I'm talking about

最佳答案

我猜这会吸引一些人。尤其是那些尝试遵循现有教程的 Xcode 新手。

创建项目时,确保选择用户界面

下的Storyboard

enter image description here

关于xcode - 无法将 GROUP 或 BUTTON 拖放到 Watchkit 应用程序的 Storyboard "Hosting Controller"上?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58251602/

相关文章:

ios - 自定义TextField在SwiftUI代码中的VStack中不起作用

swift - 在 Xcode11 中导入 Swift 包

ios - 带有 Watch OS 1 和 2 的 Watch Kit 应用

ios - Swift 5.1.2 编译器 (couchbaselite) xcode 11.2 无法导入使用 Swift 5.1 编译的模块

ios - 将 WatchKit 扩展代码 (git repo) 与现有 iPhone 代码 (repo) 分开

swift - 无法实例化类 _TtC12STracker23InfoInterfaceController

ios - UIStackView动态高度图片

IOS IBAction 按钮不会使用 URL 访问网站

c++ - 无法使用 gdb 输入。帮助!

c++ - 用于检测 arm64 或 armv7 的 xcode 架构宏