Getting started with iPhone development

So you’ve finally decided to take a giant leap into iPhone development. I suppose you have an Intel based Mac, an iPhone (this is optional) and lots of good will and patience (this is a must-have) 🙂
The first thing now you need to do is open the App Store on your Mac and download the latest version of Xcode (the iOS SDK is included). If you just want to test the apps on the Simulator then you don’t need to enroll as an Apple Developer in the iOS Developer Program. However, if you want to test the app on other devices and to distribute it, register here.

Launch Xcode. The welcome screen will show up, so you can check it out or dismiss it for now.
We will create a new project, so go to File->New->Project… Select the Single View Application and click Next.

Now you choose the options for your project, you can set the name to “HelloWorld” and select the device family to iPhone.

Click Next, choose the location of your project and click Create. Now you will finally see your project.

Take a moment to familiarize yourself with the Workspace Window because you will use it to perform your core development tasks.

The toolbar has tools for configuring your environment, managing and running schemes and viewing the progress of executing tasks.
On the image below is the flow control part which has controls for defining, choosing, running, and stopping projects. A scheme defines characteristics such as build targets, build configurations, and the executable environment for the product to be built. And of course there is also the breakpoint button.

The activity viewer shows the progress of tasks currently executing, displaying status messages, build progress, and other information about your project.

And on the far right we have the controls for adjusting the Xcode interface to fit your work style. Use them to select an editor type (Standard, Assistant or Version editor), show or hide optional view areas and labels (Navigation, Debug or Utility area), and open the Organizer window.

The navigator area is on the left side of the workspace window and you use it to view and access different facets of your project. It consists of the selector bar, content area and the filter bar.
On the selector bar there are 7 buttons

Project navigator: Add, delete, group, and otherwise manage files in your project or choose a file to view or edit its contents in the editor area.

Symbol navigator: Browse all the symbols in your project or just those within a scope that you specify.

Search navigator: Use find options and filters to quickly find any string within your projects and frameworks.

Issue navigator: Display issues such as diagnostics, warnings, and errors found when opening, analyzing, and building your project.

Debug navigator: Examine the running threads and associated stack information at a specified point or time during program execution.

Breakpoint navigator: Fine-tune breakpoints by specifying characteristics such as a triggering condition, an ignore count, and an action to be performed.

Log navigator: View the history of your build, run, debug, and source control tasks and inspect details of the results.

Content area is pretty straightforward, you use it to browse through your project files.

The filter bar lets you restrict the content that is displayed and to add a new file to the project.

The editor area is the area where you will spend most of your development time. It is the main area that is always visible in the workspace window. You can configure this area anyway you like, using the previously mentioned toolbar buttons, so play around and see what fills your needs the best.

The utility area has two panes, the top one for Quick Help and other inspectors, and the bottom one for libraries of helpful resources. We will get to know it better later through the development of our “Hello World” project.

To see some detailed information about Xcode interface, feel free to visit this link.

To really start doing something with our project, let’s go to the next lesson 🙂





Leave a Reply