Documentation Archive Developer
Search

Find Documentation Quickly

Apple provides documentation to help you successfully build and deploy your app, including sample code, FAQs, technical notes, videos, and conceptual and reference documentation. For the most current and accurate information, get the documentation resources you need directly from Apple. With Xcode, you already have access to these resources. If you prefer using a browser or viewing PDF on iPad, you can view the iOS Developer Library online. Either way, you need to become familiar with the variety of navigation and search techniques provided.

Use the Xcode Documentation Organizer to Find Documents

The Xcode Documentation organizer is a full-featured viewer that provides integrated searching and viewing of developer documentation. You use the Documentation organizer to specify which doc set you want to view.

A doc set is a collection of resources for key Apple technologies. Each set contains the same resources as the online iOS Developer Library. By default, Xcode automatically installs and updates doc sets as they become available. As an iOS developer, you’ll find that these two doc sets are installed automatically:

  • iOS Developer Library, which contains documentation specific to writing iOS apps

  • Xcode Developer Library, which contains documentation specific to using Xcode as your development environment

bullet
To view iOS documentation in Xcode
  1. Choose Window > Organizer and click Documentation in the Organizer window.

    The Documentation organizer appears with the search navigator enabled.

  2. Click the Browse button (image: ../Art/browse_2x.png) in the navigator selector bar.

    The installed developer libraries appear in the document navigator.

  3. Select iOS Library.

Click a navigator button to choose how you want to find documentation:

  • image: ../Art/browse_2x.png   Browse the documentation hierarchy.

  • image: ../Art/NB_SearchResults-xxx_2x.png    Search for specific terms.

  • image: ../Art/bookmarks_2x.png   Use bookmarks to return to documents you have viewed.

image: ../Art/DO_FindView_2x.png

Selecting a document opens it in HTML format in the content area. If the document is available in PDF format, you can open the PDF version by choosing it in the related items menu.

The jump bar in the content area allows you to further explore the document and the library it’s in. After you are comfortable using the jump bar, you may want to increase the content display area by choosing Editor > Hide Navigator.

Find Developer Documentation Online

If you prefer, you can browse the developer library online. For example, you might want to read documentation on an iPad or on a computer without Xcode installed. Access the iOS Developer Library, by entering http://developer.apple.com/library/iOS, or log in to the iOS Dev Center and click the iOS Developer Library link.

image: ../Art/iOSDevLib_2x.png

You can also view documents in PDF on the website. If a document is available in PDF, a PDF button appears in the upper-right corner when the document is displayed. Click the button to display the PDF file in the browser, or Control-click it to download the file.

Filter Documents by Resource Type, Topic, or Framework

Both Xcode and the iOS Developer Library web interface give you several ways to navigate and find resources. You can view documents by resource type, topic, or framework. Resource types include guides describing concepts and tasks, reference documents containing API details, sample code ready for download, and video presentations by Apple engineers. There are also tutorials that provide step-by-step guides to some technologies. Navigate the Topics section to find resources by subject area, such as Audio & Video, Security, and User Experience. Use the Frameworks section to navigate to framework-specific documentation, such as for UIKit, Foundation, and Core Data.

Xcode and the online iOS Developer Library use the same user interface to filter documents. In Xcode, select the library in the left column to see the same landing page you see in the iOS Developer Library. Then, use the table of contents sidebar in the content area to browse the contents of the library.

image: ../Art/frameworksXcode.png

When you select an item in the table of contents, the resource list is displayed in the content area on the right. Use the column headings to sort the resources by title, resource type, topic, framework (if applicable), or last modified date. In addition, there’s a search field in the documents bar that you can use to filter the list. For example, if you want to see all the reference documents for UIKit, select UIKit from the Frameworks category in the table of contents and then sort the list by resource type. All the reference documents appear first, followed by the sample code. If you know the name of a technology but are not sure where it is located, you can select the iOS Library heading in the table of contents to display all documents in the developer library and then enter a search string in the search field.

image: ../Art/browseByFramework.png

You can also easily view all the sample code available in a library. Click Sample Code (under Resource Types) in the table of contents, and then use the column headings and search field to sort and filter the list. Select the sample code you are interested in viewing. If you are viewing the sample in Xcode, you can view all the Xcode project files or click Open Project. If you are viewing the sample in the iOS Developer Library, you can click Download Sample Code.

image: ../Art/sample_code_2x.png

Search Developer Documentation

Search developer documentation to locate information specific to your immediate needs.

Use the search field in the upper-right corner of the online iOS Developer Library to query the entire library. The search results are grouped by resource type. For example, if you enter stringWith in the search field, the results show String Programming Guide as the most relevant guide and String as a sample code project.

image: ../Art/searchDevLib.png

In Xcode, click the Search button (image: ../Art/NB_SearchResults-xxx_2x.png) in the navigator selector bar to display the search navigator. Search results are displayed in the navigator area, organized by resource type (such as reference or guide) and in order of relevance.

image: ../Art/setNeedsDisplay.png

Each document is identified by a document type icon. The icons include:

  • image: ../Art/document_icon_2x.png  Topic category or conceptual document

  • image: ../Art/api_ref_doc_icon_2x.png  API reference document

  • image: ../Art/xcode-project_icon_2x.png  Sample code project

  • image: ../Art/doc_section_icon_2x.png  Document page or section

  • image: ../Art/help_article_icon_2x.png  Help article

Results for API symbols in reference documents are further identified with a symbol type icon and are displayed with the search term highlighted.

Use the find options to restrict search results to resources that are most relevant to your needs. Click the magnifying glass icon and choose Show Find Options. Use the Match Type menu to specify that the search term must occur at least once within the resulting documents. Use the Doc Sets menu to choose any combination of doc sets to search. Use the Languages menu to restrict the results to documents for a specified set of the programming languages.

image: ../Art/alert_Xcode_4.5.png

View Reference Information in Context with Xcode

You can access reference documents directly from the source editor in Xcode. To open the source editor, select a source file in the navigation area. With a source file open, show the utilities area and click the Quick Help inspector button within it. Place the insertion point in an API symbol in the source editor, and view the documentation in the inspector.

The information displayed includes links to:

  • Complete reference documentation for the symbol

  • The header file where the symbol is declared

  • Related programming guides

  • Related sample code

You can also view concise reference information for an API symbol in a pop-up window by Option-clicking the symbol in the source code.

image: ../Art/quick_help.png

Use Xcode Bookmarks to Return Easily to a Page

Add bookmarks in the Xcode Documentation organizer to return easily to a page, document, or category. You can bookmark any page or document.

Manage your bookmarks in the bookmark navigator. By default, bookmarks are listed in the order in which you add them. You can change the order of a bookmark by dragging it to a new position in the list. You can delete a bookmark by selecting it and pressing Delete. The name assigned to a bookmark is the title of the corresponding HTML page. (You cannot rename bookmarks.)

image: ../Art/DO_Bookmark_2x.png

Finding Help About Xcode

Apple also provides documentation about using Xcode. To browse the Xcode online help, choose Help > Xcode Help and the Documentation organizer opens to the “Finding Help in Xcode” start screen. Click Xcode Application Help for a list of help books organized by subject. Each help book consists of articles offering step-by-step descriptions for performing common operations in Xcode. Many of the articles in Xcode Help include a short video illustrating the described task. Click the video thumbnail to play the video.

image: ../Art/finding_help_in_xcode.png

Many Xcode Help articles are also available from shortcut menus throughout Xcode. Control-click in any of the main user interface areas in Xcode to see a list of help articles available for that area. If there are more articles than can be listed in the menu, choose Show All Help Topics to see all the related help articles.

image: ../Art/showAllHelpTopics.png

View the iOS Developer Library on iPad

There’s a custom interface for viewing documentation in Safari on iPad. To save screen space, you use the Library button instead of a table of contents to navigate by type, topic, or framework.

image: ../Art/iOSDevLibOniPad_2x.png

To view a PDF file on iPad, select the document you want to read, tap the table of contents control, and tap PDF.

image: ../Art/PDFoniPad_2x.png

Discuss Issues with Other Developers and Apple Engineers

If you don’t find what you need in Xcode or the iOS Developer Library, you can post a question to one of the Apple Developer forums. When you log in to the iOS Dev Center, the Apple Developer Forums link appears at the bottom of the page.