PhoneGap in iPhone

PhoneGap is an HTML5 app that allow you to author native applications with web technologies and get access to APIs. We need to installed PhoneGap in Xcode 4. For that follow the below requirment:

1. Installed PhoneGap 1.0.0 form here

2. Close the Xcode before you download the PhoneGap.

My Last post you can find out from here TextScroll

Step 1: Open the Xcode, Create a new project using PhoneGap based application. Give the application “iPhoneGap”(See the figure 1).

Figure 1

Step 2: Xcode automatically creates the directory structure and adds essential frameworks to it. You can explore the directory structure to check out the content of the directory (Image should be figure2).

Figure 2

Step 3: If  you compile and  run the application, you got the error in the simulator “ERROR: Start page at www/index.html was not found”.

Step 4: Select the Project and open it to the finder (See the figure 3). You can find out  www folder (See figure 4).

Figure 3

Figure 4

Step 5: Drag the www folder in the project, but make sure you select the “Create folder references foe any added folders (See figure 5).

Figure 5

Step 6: Now compile and run the application on the Simulator.

Figure 6

You can Download SourceCode from here

iPhoneGap

Leave a Reply

Your email address will not be published. Required fields are marked *