Hello I am working on application in which i am opening a menu in a webview in ios.
The menu is an html page. say menu have two options
- Register
- Login
I have following pages already developed.
1. http://example//menu
2. http://example//register
3. http://example//login
I am able to open menu page in a webview. now what i want to do is create a method in objective c like openpage(url) this function should open the url in webview.
The html pages works fine in Android, i want to get it working in ios.
the register onclick method is written as follow:
onclick="window.jsInterface.openPage('http://example//register'); return false;">
so I will require to create a interface named jsinterface and a method openpage into it. but I am not clear how to do it.
one more thing I want to know howdelegate method will identify the click of register and menu. that is if register is clicked then I need to open http://example//register
page and if login is clicked then i want to open http://example//login
.