Information Technology Reference
In-Depth Information
Sample code
The sample code section of the documentation is a library of sample projects that demonstrate key features and
techniques. Many code samples are fairly complex and can be difficult to follow. Some are overly complex; they
use advanced techniques and solutions when simpler code would work almost as effectively. Try reviewing the
sample code for specific solutions and reverse-engineering it or using it with minor modifications. You can also
find alternative solutions from other sources online, and they often illustrate useful techniques in a simpler and
more accessible way.
If you view the sample code in a browser, you list each file in a browser window and you have the option to
click a Download Sample Code button at the top left of the window to download a complete zipped project file.
For example, Figure 6.11 shows a project called CryptoExercise that implements a selection of cryptographic
features.
If you view the sample code in Xcode itself, you can click an Open Project button that loads the sample project
with all of the source code.
FIGURE 6.11
With sample code, you can view the files individually or download the complete project, unzip it, and build it.
Search WWH ::




Custom Search