文件名称:iOS 7开发(英文档)
文件大小:17.01MB
文件格式:RAR
更新时间:2017-01-23 12:16:42
iOS 7开发 英文档
The next step is to select a physical location on the hard disk and a logical location within your
project for your new class; that is, the file folder and the group folder. In this step (see Figure 1-26),
you can also decide whether your class should be included in the target (the executable file). This is
usually what you want, but there might be situations when you want to exclude files, such as when
you have more than one target, like a unit-test target.
Most of the time you can just accept the default values for the locations, so go ahead and click “Create.”
Xcode then generates two new files for your project: MyClass.h and MyClass.m. They contain the code
of an empty class, as in the header and implementation files shown in Listing 1-5 and Listing 1-6.
Listing 1-5. A new class header file
//
// MyClass.h
// My App
//
#import
【文件预览】:
iOS 7开发(英文档)
----iOS 7开发(英文档).pdf(22.32MB)