-
Notifications
You must be signed in to change notification settings - Fork 4
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)
You need to download "ios-sim" for phonegap to emulating/deploying the ios project.(Nodejs environment is required)
npm install -g ios-sim
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>
$ cd ProjectName
$ phonegap run ios