Use phonegap to wrap html5 web pages as iOS apps and phonegaphtml5
Tool preparation: mac development machine and Apple developer account (not required for testing feasibility, but required for debugging and release of a real machine)
Phonegap: http://phonegap.com/install/ (if not found, pull down)
As of today, PhoneGap has been updated to version 2.9.1. To ensure quick use, I have provided a copy of my Baidu Network Disk:
Link: http://pan.baidu.com/s/1gd9yPyF password: zvcs
OK, whether you downloaded the package by yourself or by downloading it to the zip package through my online storage, first decompress the package and find the create under phone-2.9.1/lib/ios/bin on the terminal, as shown in figure
We can see that there is a create
In this directory, execute a command like this:
./Create [project directory] [homepage (reversed)] [project name], as shown in figure
./Create ~ /Project/iOS/WoodyPlusPhonegap com. woodyplus. www woodyplusphonegap
Go to the project directory you set to open the Xcode project.
Double-hitting project file, find index.html in your project
If you publish built-in html, you can directly build
If you are similar to me, you can choose to be on line HTML (more flexibility, you can make a new version later), then you can write a record like index.html
<!DOCTYPE html>
Click Run to see the following demo.
Is it easy?