This is an update to a number of older posts which involved creating new files in Xcode by selecting a specific subclassing option. This has changed in recent versions of Xcode; this is the way to do it as of Xcode 4.5 (the latest at the time of writing).
- Go to File > New > File… (or press Command-N)
- On the left of the sheet that appears, select Cocoa Touch under iOS. On the right, select Objective-C class. Click Next
- For “Class”, specify the name of your class. “Subclass of” lets you select a superclass; this selection changes the options you see below (for example, “With XIB for user interface” appears only when you’re subclassing a view controller). You can also type in a name and make a subclass of one of your custom classes.
- Click Next, pick a save location, and click Create. You should see your files appear in the File Navigator.