Developing for iPhone

Learn how to create and develop iPhone applications from scratch.

Archive for July, 2009

Tutorial 4-2: Keyboard Input

Posted by Henry On July - 26 - 2009 1 COMMENT

Go ahead and open the Story Time project from the previous tutorial. In the resources folder, double-click “FlipsideView.xib” to open the interface for the application’s flipside view. This is where we will have a number of inputs to change the content of the story. By using Labels and Text Fields from the library in Interface Builder, create an interface that looks like this:

iPhone Development Tutorials

iPhone Development Tutorials

Read the rest of this entry »

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 »