hii, my iphone app loads a UIWEBVIEW website.
i load a login page intially and my javascript will check if the login is success b4 bring him to another webpage.
I have buttons on the toolbar which will call the javascript function, however, these button is only useful after the user has login, and not useful at all at the login page.
How do i code such as, only when the website changes, only that the button appears, so as not to mislead users? Thanks
For this you have to implement webview delegate methods. There is a method named
in this method I have checked whether the string consists camera or not. Similarly check whether the user logged in or not.
Hint: by checking the user id in the url.
if you found then the user logged in, then you can show the toolbar.
Then the problem will be solved.
Regards,
Satya