Developing for iPhone

Learn how to create and develop iPhone applications from scratch.

Tagged with ‘coding’

Tutorial 4-1: Other Templates

Posted by Henry On July - 16 - 2009 1 COMMENT

In the previous tutorial, we used a view-based application template. These consist of just one view or screen. Today, let’s try out a new template. Follow the instructions below to get started:

1. In XCode, click File > New Project
2. In the left pane of the new window, click Application under the iPhone OS heading
3. In the right pane, click Utility Application and then click the Choose button
4. Name the project “Story Time” and click Save.

The Utility Application template we chose this time, sets up a nice flipping function for us. This means we can flip between two different views. Have a look at your new project window. You will notice that in the left pane, we have folder for the main view and a folder for the flipside view. Each of these folders contains some basic classes already set up for us. Now click on the Resources folder. You should see an interface file (.xib) for both the main view and the flipside view. Click “Build and Go” to test it out. Once the simulator is running, you can click the “i” icon at the bottom of the screen to flip over to the other view, then click the “Done” button to flip back. Cool huh?

Read the rest of this entry »

Why?

Posted by Henry On April - 11 - 2009 ADD COMMENTS

Welcome to Developing For iPhone.

A couple of months ago, I decided that I wanted to develop an iPhone application. However, there were a couple of problems with this:

  1. I had hardly ever used a Mac before.
  2. I had never even touched an object-oriented programming language.

So here I am, trying to learn the basics of developing for the iPhone with very little knowledge on the subject. I have decided to complement my learning by writing tutorials on what I have learned so far. So if you want to start learning – why not join in with me? I am hoping to give new developers a kick-start and learn a few things myself in the process. This may not be much help for programming gurus who already know their stuff, but if you are one, I encourage you to join in and help out!

If you find a problem in a tutorial or think it could be better, please don’t hesitate to leave a comment to help everyone out!

That said, let’s jump right in from the beginning. See the tutorials page for the first tutorial.