Skip to content

How to create a phonegap cocos html5 (Tutorial 2 IOS)

yuye.liu edited this page Jan 15, 2014 · 1 revision

You need read Tutorial 1 at the first step

[How to create a phonegap cocos html5 (Tutorial 1 Google Chrom Browser)](https://github.com/yuye-liu/phonegap-cocos-html5/wiki/How-to-create-a-phonegap-cocos-html5-(Tutorial-1-Google-Chrom-Browser)

IOS

Step1:

You need to download "ios-sim" for phonegap to emulating/deploying the ios project.(Nodejs environment is required)

npm install -g ios-sim

Step2:

Find the file under the phth:

/Users/UserNmae/phonegap-cocos-html5/platforms/ios/HelloWorld/HelloWorld-Info.plist

Changing code line 71(Changing Orientation To Landscape)

<string>UIInterfaceOrientationPortrait</string>

To:

<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>

Step3:

$ cd ProjectName
$ phonegap run ios