How can i get the browsing history in UIWebView Iphone. UIWebView recorded browsing history ? if yes, How to pull out back this history shown in table view as Safari .
Please advice me. Any suggestion.
Thanks
How can i get the browsing history in UIWebView Iphone. UIWebView recorded browsing history ? if yes, How to pull out back this history shown in table view as Safari .
Please advice me. Any suggestion.
Thanks
It's actually much simpler than creating your own stack (which is what I was about to do until I found that it's not necessary). UIWebView has the methods: goBack, goForward, canGoBack and canGoForward. You can do the following.
Make the ViewController that contains your UIWebView a delegate of UIWebViewDelegate:
Create the IBActions for the buttons:
Create your Back and Forward buttons and link them to the IBActions as well as to the appropriate IBOutlets
Finally add the webViewDidFinishLoad delegate method:
Note that the buttons are enabled and disabled according to whether the are back or forward pages from your current position.
That's it! You will now be able to browse backward and forward, and the buttons will automatically show or be disabled as appopriate.
This method will be call when webview load a request:
Save this request to a stack. This stack is Webview's History.
Hope that help :)