Reputation: 3999
Can cocos2d html5 with javacript binding project for ios call ios native api? I am looking for the way to access the ios device camera, photos, etc.
Upvotes: 0
Views: 427
Reputation: 125
You can wrap the Cocos2d-html5 project in Cordova, then use the Cordova methods to call all the native functionality you mention
Upvotes: 0
Reputation: 64477
Nope. The whole point of the JS API is to have a common subset of the API that works across all platforms (on the web you can't access the camera or a photo library), with the exception of the most commonly needed features like input.
You can write the camera etc code in Objective-C. You can then expose your methods as JS bindings as needed.
Upvotes: 0