XCode 文档 - 离线阅读

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3151124/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 19:29:52  来源:igfitidea点击:

XCode Documentation - Offline Reading

objective-ccocoacocoa-touchxcodeios

提问by Sheehan Alam

Is it possible to have the iOS and OSX documentation available for offline reading? If so, how?

是否可以离线阅读 iOS 和 OSX 文档?如果是这样,如何?

采纳答案by Kalyana Sundaram

The Documentation for iOS is no longer a part of SDK for offline reading - looks like you need to install from preferences of XCode, select Documentation preferences - click get next to 'iOS 4.3 Library Documentation' to install it.

iOS 文档不再是用于离线阅读的 SDK 的一部分 - 看起来您需要从 XCode 的首选项安装,选择文档首选项 - 单击“iOS 4.3 库文档”旁边的获取以安装它。

回答by Stephen Donnell

As of Xcode 5, you can choose to download sets of documentation under Preferences\Downloads Tab\Documentation.

从 Xcode 5 开始,您可以选择在 Preferences\Downloads Tab\Documentation 下下载文档集。

XCode Downloads Tab

XCode 下载选项卡

回答by JWWalker

Go to Xcode's documentation preferences, and make sure that any documentation set you're going to need offline doesn't have a Get button next to it. If it does, click the button to download the set while you're online.

转到 Xcode 的文档首选项,并确保您需要离线使用的任何文档集旁边都没有“获取”按钮。如果是,请单击按钮在您在线时下载该集合。

回答by Philip Regan

A lot, if not most, of the online documentation has a link to a PDF of what you're reading in the top right of the window, underneath the Search icon.

许多(如果不是大多数)在线文档在窗口右上角的“搜索”图标下方都有指向您正在阅读的内容的 PDF 的链接。

回答by Wouter

As of Xcode 7+, you can find the download for the documentation in Preferences > Components.

从 Xcode 7+ 开始,您可以在首选项 > 组件中找到文档的下载。

enter image description here

在此处输入图片说明

You have to download documentation for every OS (macOS, watchOS, iOS, tvOS) separately.

您必须分别下载每个操作系统(macOS、watchOS、iOS、tvOS)的文档。

回答by Eimantas

When in XCode press ? + ? + ? + /then start searching for methods or classes you're interested in.

在 XCode 中按? + ? + ? + /然后开始搜索您感兴趣的方法或类。