Adding a New File
- Steps
In the project navigator, select the project or group to which you want to add the file.
Choose File > New > New File.
Select the file template for your iOS or OS X product, and click Next.
Specify any options your file requires, and click Next.
Name the file, specify its location in your file system, and click Save.

Add a new file to a project or workspace. This process places the new file at a particular location in your file system and creates a reference to it from a workspace or a project.
The New File dialog, which appears first, lets you choose the file template Xcode will use to generate the file.
These are the types of files you can create:
Source: Includes header files and implementation files for C, C++, and Objective-C.
User interface: Includes storyboard, view, window, and application documents.
Core Data: Includes data and mapping model files, and subclasses of NSManagedObject.
Resource: Includes GPX, settings bundle, property list, rich text, and strings files.
Other: Includes empty files, assembly-language and shell-script files, and files with configuration settings, resource rules, or exports.
The video illustrates the process of adding an Objective-C–class from a template to a project.
© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-06-11)