代码之家  ›  专栏  ›  技术社区  ›  armnotstrong

为什么cocoa touch类的新文件会产生一个接口?

  •  1
  • armnotstrong  · 技术社区  · 7 年前

    New -> File -> Cocoa Touch Class UIViewController (interface) 尾巴?

    enter image description here

    enter image description here

    1 回复  |  直到 7 年前
        1
  •  3
  •   Sweeper    7 年前

    你好像在用助理编辑。只需选择最左边的选项即可更改标准编辑器:

    enter image description here

    (此分段控件位于右上角。如果您在助理编辑器中,则应选择中间选项)

    关闭助理编辑器的另一种方法是单击屏幕截图中显示的十字(x)。然后可以使用左侧面板打开新文件。

    您也可以通过单击两个圆圈并选择“手动->”切换到实际文件:

    enter image description here