如何“在Xcode中将本章作为游乐场打开”?

时间:2023-01-23 17:06:14

I have the Swift book open in iBooks, and see the note “For the best experience, open this chapter as a playground in Xcode.” How is this done?

我在iBooks中打开了Swift的书,并看到了“为了最好的体验,打开这一章作为Xcode的游乐场”。“这是怎么做到的?”

1 个解决方案

#1


54  

  • Launch Xcode 6
  • 发射Xcode 6
  • Documentation and API Reference Window (command-shift-0)
  • 文档和API参考窗口(命令-shift-0)
  • Search for “The Swift Programming Language”
  • 搜索“Swift编程语言”
  • Click first suggestion
  • 点击第一个建议

You will see a series of collapsable menus on the left side of the screen detailing different sections, such as “A Swift Tour”, and “Language Guide”. You can click through these to get different bits of information about different aspects of the language.

您将在屏幕左侧看到一系列可折叠的菜单,其中详细描述了不同的部分,如“快速浏览”和“语言指南”。您可以通过这些来获取关于语言不同方面的不同信息。

Many sections will feature the “Open Playground” links that you’ve described, except from here, they’re clickable. When you click one of these "Open Playground" links, the .playground file associated with this section will be downloaded to your downloads folder, and can be directly opened with Xcode 6.

许多部分将突出你所描述的“开放游乐场”链接,除了这里,它们是可点击的。当您单击这些“打开游乐场”链接之一时,与本节相关的.游乐场文件将被下载到下载文件夹中,并可以直接使用Xcode 6打开。

如何“在Xcode中将本章作为游乐场打开”?

There is even another option that allows you to open the playground files directly without first dropping them in your downloads folder.

甚至还有一个选项可以让你直接打开游戏文件,而不用先把它们放在你的下载文件夹里。

In the documentation viewer in Xcode 6, search for "A Swift Tour", or any other term that you find to yield you an article you're looking for:

在Xcode 6中的文档查看器中,搜索“Swift Tour”,或者您发现的任何其他术语,以提供您正在查找的文章:

如何“在Xcode中将本章作为游乐场打开”?

Click a result that has a .playground icon to its left. From here, you can use the "Action" button on the right side of the window to open the file directly in an Xcode Playground.

单击左侧有.playground图标的结果。从这里开始,您可以使用窗口右侧的“Action”按钮直接在Xcode游乐场中打开文件。

如何“在Xcode中将本章作为游乐场打开”?

#1


54  

  • Launch Xcode 6
  • 发射Xcode 6
  • Documentation and API Reference Window (command-shift-0)
  • 文档和API参考窗口(命令-shift-0)
  • Search for “The Swift Programming Language”
  • 搜索“Swift编程语言”
  • Click first suggestion
  • 点击第一个建议

You will see a series of collapsable menus on the left side of the screen detailing different sections, such as “A Swift Tour”, and “Language Guide”. You can click through these to get different bits of information about different aspects of the language.

您将在屏幕左侧看到一系列可折叠的菜单,其中详细描述了不同的部分,如“快速浏览”和“语言指南”。您可以通过这些来获取关于语言不同方面的不同信息。

Many sections will feature the “Open Playground” links that you’ve described, except from here, they’re clickable. When you click one of these "Open Playground" links, the .playground file associated with this section will be downloaded to your downloads folder, and can be directly opened with Xcode 6.

许多部分将突出你所描述的“开放游乐场”链接,除了这里,它们是可点击的。当您单击这些“打开游乐场”链接之一时,与本节相关的.游乐场文件将被下载到下载文件夹中,并可以直接使用Xcode 6打开。

如何“在Xcode中将本章作为游乐场打开”?

There is even another option that allows you to open the playground files directly without first dropping them in your downloads folder.

甚至还有一个选项可以让你直接打开游戏文件,而不用先把它们放在你的下载文件夹里。

In the documentation viewer in Xcode 6, search for "A Swift Tour", or any other term that you find to yield you an article you're looking for:

在Xcode 6中的文档查看器中,搜索“Swift Tour”,或者您发现的任何其他术语,以提供您正在查找的文章:

如何“在Xcode中将本章作为游乐场打开”?

Click a result that has a .playground icon to its left. From here, you can use the "Action" button on the right side of the window to open the file directly in an Xcode Playground.

单击左侧有.playground图标的结果。从这里开始,您可以使用窗口右侧的“Action”按钮直接在Xcode游乐场中打开文件。

如何“在Xcode中将本章作为游乐场打开”?