Like described in the title, I want to open a native ios viewcontroller when the user clicks a button in my index.html file. I think I need to write a custom plugin for that. Anyone can give me more details? Thanks!
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can check the code of ChildBrowser plugin, which is actually a native view which pops over the phonegap view. You can modify the plugin to show more complex native view. The plugin includes the xib file and other objective-c classes.
https://github.com/phonegap/phonegap-plugins/tree/master/iOS/ChildBrowser
For more detail check this post:
Integrating phoneGap with native iOS app