Learn XCODE

*About Xcode

As mentioned earlier in this chapter, Xcode is an IDE that provides a comprehensive
set of features to enable you to manage the entire lifecycle of your software development
project. Creating the initial project, defining your class or data model, editing
your source code, building your application, and finally debugging and performancetuning
the resultant application are all tasks performed in Xcode.

Xcode is built on the foundation of several open source tools: LLVM (the open
source Low-Level Virtual Machine), GCC (the GNU compiler), GDB (the GNU debugger),
and DTrace (instrumentation and profiling by Sun Microsystems).

*Create Your First Application

To create your first project, select the New Project option in the File menu (Shift-
Cmd-N). Xcode displays a New Project dialog similar to the one displayed in
Your first decision is to choose the type of project you want to create. This is done
by selecting a template that determines the type of source code and settings Xcode
will automatically add to get your project started.

For the Coin Toss game, you want the View-based Application template. You first
select Application under the iOS header in the left pane, and then select View-based
Application. Then click Next in the lower-right corner, which prompts you to name
the project and allows you to specify the company identifier required to associate the
application with your iOS Developer account. For this project, use the name CoinToss
and enter a suitable company identifier.






*Table 1.2 Project templates available in Xcode for creating a new iOS project

Project type Description
 

Navigation-based Application Creates an application similar in style to the built-in Contacts application
with a navigation bar across the top.

OpenGL ES Application Creates an OpenGL ES–
based graphics application suitable for
games and so on.

Split View–based Application Creates an application similar in style to the built-in Mail application
on the iPad. Designed to display master/detail-style information in a
single screen.

Tab Bar Application Creates an application similar in style to the built-in Clock application
with a tab bar across the bottom.

Utility Application Creates an application similar in style to the built-in Stocks and
Weather applications, which flip over to reveal a second side.

View-based Application Creates an application that consists of a single view. You can draw
and respond to touch events from the custom view.

Window-based Application Creates an application that consists of a single window onto which
you can drag and drop controls.






No comments:

Post a Comment