Invoking a XIB from a HTML page in Phonegap
I am writing an app using PhoneGap framework. The main screen has four buttons and if I click the first button, a native app that has been written to show a Map in MapKit should execute. How to invoke th开发者_运维问答is app from a javascript call?
Any thoughts?
Yes, you need to write a plugin for that feature.
For calling a external .xib you can look at some of the code from the ChildBrowser plugin.
There is also a MapKit plugin available:
you can do this by using the plugin architecture of phonegap.
Here is the wiki entry for writing phonegap plugins for iOs: http://wiki.phonegap.com/w/page/36753496/How%20to%20Create%20a%20PhoneGap%20Plugin%20for%20iOS
精彩评论