WatchKit 或 WatchKit Extension 中自定义 类 之间的区别?
Difference between custom classes at WatchKit or WatchKit Extension?
如果我将界面故事板的自定义 类 放在 WatchKit 或 WatchKist 扩展中,会有什么不同。 (以 myInterfaceController 为例)
您的 WatchKit 扩展目标中应该只包含 WKInterfaceController 类。您将不允许在 WatchKit 应用程序中包含任何代码。文件所在的文件夹并不重要,重要的是它们所在的目标。确保所有 WKInterfaceController 类 都在 WatchKit 扩展目标中。
如果我将界面故事板的自定义 类 放在 WatchKit 或 WatchKist 扩展中,会有什么不同。 (以 myInterfaceController 为例)
您的 WatchKit 扩展目标中应该只包含 WKInterfaceController 类。您将不允许在 WatchKit 应用程序中包含任何代码。文件所在的文件夹并不重要,重要的是它们所在的目标。确保所有 WKInterfaceController 类 都在 WatchKit 扩展目标中。