Using Code from the Code Snippet Library

    Steps
  1. With a source file open, click the Code Snippet library button.

  2. Select a code snippet.

  3. Drag the snippet to the source file.



image: ../Art/UsingSnippet_button.png

Add frequently-used source code to your project by using a snippet from the Code Snippet library.

The system-supplied snippets in the library are designed to speed development and help ensure code integrity. You can also create custom code snippets.

The video illustrates using a code snippet to add an init method to the implementation of an Objective-C class.