Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lawicko

macrumors member
Original poster
Jul 17, 2008
44
0
Ok, so I use UIWebView to browse web content from my application. I don't use built in loadURL method, because I have to authenticate and handle errors, so UIWebView's loading system is not good enough. I load the content I use this method:
– loadData:MIMEType:textEncodingName:baseURL:
but unfortunately when using this method the web view does not record the clicks, so it does not know when back and forward actions are available...
I was thinking of keeping track of visited urls and clicks manually, but that kind of solution may take more time than necessary, so maybe someone can give me some advice how to implement back action in this case?
 

xnakx

macrumors newbie
Oct 5, 2008
17
0
check out the instance methods in the WebView documentation. It might work in your situation.
here
 

lawicko

macrumors member
Original poster
Jul 17, 2008
44
0
As stated in my first post - UIWebView instance is not aware of next and previous requests when loading content manually. I had to implement this functionality myself by storing every request in an array, creating request history and removing appropriate records when moving back. Wasn't as much work as I feared it would be :D
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.