uiwebview - Using iphone UIWebKit to create a web browser, problems with getting url -


So I'm building a web browser for my classroom and I have a problem whenever I Speaking from a website like form, it does not update my address bar text (which is UIT-field). As an example, if I go to google.com on my browser and search for something in the search field and it is submitted, then it loads a new page without changing my address bar (this is just now Is also on google.com). I have to change it for the link, but I do not think how it can be made, so it works for these types of forms. I have added NSLog to my webViewDidFinishLoading function and do not say that the page is loading, so I'm not sure how to find out how it changes in this way. Does anyone have no idea why he is not working?

Instead, stop this in this method:

  - (BOOL ) Webview: (UIWebView *) webView should StartLoadWithRequest: (NSURLRequest *) Request Navigation Type: (UIWebViewNavigationType) Navigation Type;  

Navigation type may be UIWebViewNavigationTypeLinkClicked, UIWebViewNavigationTypeFormSubmitted or other. And [request URL] will be an NSURL object with the page URL being loaded.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -