• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Phonegap on iphone
 

Phonegap on iphone

on

  • 333 views

 

Statistics

Views

Total Views
333
Views on SlideShare
333
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft Word

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Phonegap on iphone Phonegap on iphone Document Transcript

    •  Download/install the iPhone SDK Download PhoneGap Open the PhoneGap.plist file. Update your index.html with the www folder. Build and Go! You should see the default index.html page loaded into the simulator:
    •  So now youve got your index.html file loading when the application loads! You can edit this file in XCode by browsing for it in the resources folder. Try making some changes and recompiling! Now all we need to cover is adding additional files so you can include images, javascript, css, and other files! To add a file, first we have to drag the file from our file system into the resources folder:
    •  Once we drop the file well get a dialog box popping up. Be sure to check the "Copy item into destinations..." checkbox! Then click "Add"
    •  Now you can see we have the smily.png file in our resources folder! Now lets add the image to our index.html file:
    •  Go ahead and build and go at this point. You should see your image in the application!  Thats it! You can add CSS, JS, any files you want! You access them as though they were in the same dir as the index.html file.